You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/doc/unstable-book/src/compiler-flags/rustc-bootstrap.md
+5-1
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,11 @@ Setting `RUSTC_BOOTSTRAP=1` instructs rustc to enable this for all crates.
11
11
Setting `RUSTC_BOOTSTRAP=crate_name` instructs rustc to only apply this to crates named `crate_name`.
12
12
Setting `RUSTC_BOOTSTRAP=-1` instructs rustc to act as if it is a stable compiler, even on the nightly release channel.
13
13
Cargo disallows setting `cargo::rustc-env=RUSTC_BOOTSTRAP` in build scripts.
14
-
Crates can fully opt out of unstable features by using `#![forbid(unstable_features)]` at the crate root (or any other way of enabling lints, such as `-F unstable-features`).
14
+
Build systems can limit the features they enable with [`-Z allow-features=feature1,feature2`][Z-allow-features].
15
+
Crates can fully opt out of unstable features by using [`#![forbid(unstable_features)]`][unstable-features] at the crate root (or any other way of enabling lints, such as `-F unstable-features`).
0 commit comments