Skip to content

Commit

Permalink
Rollup merge of rust-lang#109667 - clubby789:fix-stage0-doc, r=ozkanonur
Browse files Browse the repository at this point in the history
Always set `RUSTC_BOOTSTRAP` with `x doc`

Fixes rust-lang#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 rust-lang#104363 to land in beta
  • Loading branch information
matthiaskrgr authored Mar 28, 2023
2 parents a608e50 + 9fc7eca commit 1af75b1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/bootstrap/doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1027,10 +1027,11 @@ impl Step for RustcBook {
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");
}
// We need to validate nightly features, even on the stable channel.
// Set this unconditionally as the stage0 compiler may be being used to
// document.
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.
Expand Down

0 comments on commit 1af75b1

Please sign in to comment.