rust/compiler/rustc_feature
Matthias Krüger 957247d546
Rollup merge of #135245 - Enselic:no-set-env, r=davidtwco
rustc_feature: Avoid unsafe `std::env::set_var()` in `UnstableFeatures` tests

Avoid unsafe `std::env::set_var()` by allowing tests to inject `std::env::var("RUSTC_BOOTSTRAP")` with a `env_var_rustc_bootstrap` parameter.

Part of https://github.com/rust-lang/rust/issues/130672

Discussed at https://github.com/rust-lang/rust/pull/129636#discussion_r1766381501 (CC `@compiler-errors` `@bjorn3)`
2025-01-13 15:57:03 +01:00
..
src Rollup merge of #135245 - Enselic:no-set-env, r=davidtwco 2025-01-13 15:57:03 +01:00
Cargo.toml unstable feature usage metrics 2024-11-20 11:31:40 -08:00