Skip to content

Commit 1af75b1

Browse files
authored
Rollup merge of #109667 - clubby789:fix-stage0-doc, r=ozkanonur
Always set `RUSTC_BOOTSTRAP` with `x doc` Fixes #100060 Note that there is still a warning - the `unused_allocation` lint does not fire in stage 0, but that's just a matter of waiting for #104363 to land in beta
2 parents a608e50 + 9fc7eca commit 1af75b1

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/bootstrap/doc.rs

+5-4
Original file line numberDiff line numberDiff line change
@@ -1027,10 +1027,11 @@ impl Step for RustcBook {
10271027
if self.validate {
10281028
cmd.arg("--validate");
10291029
}
1030-
if !builder.unstable_features() {
1031-
// We need to validate nightly features, even on the stable channel.
1032-
cmd.env("RUSTC_BOOTSTRAP", "1");
1033-
}
1030+
// We need to validate nightly features, even on the stable channel.
1031+
// Set this unconditionally as the stage0 compiler may be being used to
1032+
// document.
1033+
cmd.env("RUSTC_BOOTSTRAP", "1");
1034+
10341035
// If the lib directories are in an unusual location (changed in
10351036
// config.toml), then this needs to explicitly update the dylib search
10361037
// path.

0 commit comments

Comments
 (0)