A piece of anecdata: my Rust code from 8 years ago still compiles fine, though compiler complains about not having the defined edition set.
Though I suspect it’s fair to say the entire settlement is built of glass houses here :-)
https://news.ycombinator.com/item?id=43798312
I suppose if one wants absolutely no surprises, they will need to lock the entire toolchain as well, regardless of the language…