]> git.lizzy.rs Git - rust.git/blobdiff - src/bootstrap/doc.rs
Rollup merge of #97087 - Nilstrieb:clarify-slice-iteration-order, r=dtolnay
[rust.git] / src / bootstrap / doc.rs
index fcef784d2d1fa3547379fac1cd135784f4ecc060..be6655ddb61d0883bbe5396f99b89a5b424d8d30 100644 (file)
@@ -881,6 +881,10 @@ fn run(self, builder: &Builder<'_>) {
         if self.validate {
             cmd.arg("--validate");
         }
+        if !builder.unstable_features() {
+            // We need to validate nightly features, even on the stable channel.
+            cmd.env("RUSTC_BOOTSTRAP", "1");
+        }
         // If the lib directories are in an unusual location (changed in
         // config.toml), then this needs to explicitly update the dylib search
         // path.