TIL about the RUSTC_BOOTSTRAP environment variable. By setting it, you can use unstable language features (i.e. anything behind a `#![feature(...)]` gate) on stable rustc.

I always assumed you needed to be on nightly for that, but this is an escape hatch.

It's used in Rust for Linux to build the Rust modules with a stable compiler (which is how I found out about it today).

doc.rust-lang.org/beta/unstabl

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.social/users/shadower/statuses/116054548008017353 on your instance and quote it. (Note that quoting is not supported in Mastodon.)