Skip to content

Commit ce70c6f

Browse files
Mark-Simulacrumpietroalbini
authored andcommitted
Enable RUSTC_BOOTSTRAP for a few steps
1 parent b26e01b commit ce70c6f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: src/bootstrap/test.rs

+3
Original file line numberDiff line numberDiff line change
@@ -964,6 +964,7 @@ impl Step for RustdocGUI {
964964
.arg("doc")
965965
.arg("--target-dir")
966966
.arg(&out_dir)
967+
.env("RUSTC_BOOTSTRAP", "1")
967968
.env("RUSTDOC", builder.rustdoc(self.compiler))
968969
.env("RUSTC", builder.rustc(self.compiler))
969970
.current_dir(path);
@@ -1699,6 +1700,8 @@ impl BookTest {
16991700

17001701
let mut rustbook_cmd = builder.tool_cmd(Tool::Rustbook);
17011702
let path = builder.src.join(&self.path);
1703+
// Books often have feature-gated example text.
1704+
rustbook_cmd.env("RUSTC_BOOTSTRAP", "1");
17021705
rustbook_cmd.env("PATH", new_path).arg("test").arg(path);
17031706
builder.add_rust_test_threads(&mut rustbook_cmd);
17041707
builder.info(&format!("Testing rustbook {}", self.path.display()));

0 commit comments

Comments
 (0)