diff options
| author | clubby789 <jamie@hill-daniel.co.uk> | 2023-03-27 17:11:58 +0100 |
|---|---|---|
| committer | clubby789 <jamie@hill-daniel.co.uk> | 2023-03-27 17:12:18 +0100 |
| commit | 9fc7eca935a00f06c3e47b29a4bb8e313eb47e7a (patch) | |
| tree | cacd53ae83a623adec06cc7d07e053b1b576c9cc /src/bootstrap | |
| parent | 553ecbe8bae12bc43a34ac0b8a63e17026ce1e8a (diff) | |
| download | rust-9fc7eca935a00f06c3e47b29a4bb8e313eb47e7a.tar.gz rust-9fc7eca935a00f06c3e47b29a4bb8e313eb47e7a.zip | |
Always set `RUSTC_BOOTSTRAP` with `x doc`
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/doc.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/bootstrap/doc.rs b/src/bootstrap/doc.rs index 36fdd4abf4f..be43affa404 100644 --- a/src/bootstrap/doc.rs +++ b/src/bootstrap/doc.rs @@ -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. |
