Skip to content

Commit cbf9902

Browse files
Enable RUSTC_BOOTSTRAP for a few steps
1 parent e597688 commit cbf9902

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/bootstrap/test.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1003,6 +1003,7 @@ impl Step for RustdocGUI {
10031003
.arg("doc")
10041004
.arg("--target-dir")
10051005
.arg(&out_dir)
1006+
.env("RUSTC_BOOTSTRAP", "1")
10061007
.env("RUSTDOC", builder.rustdoc(self.compiler))
10071008
.env("RUSTC", builder.rustc(self.compiler))
10081009
.current_dir(path);
@@ -1723,6 +1724,8 @@ impl BookTest {
17231724

17241725
let mut rustbook_cmd = builder.tool_cmd(Tool::Rustbook);
17251726
let path = builder.src.join(&self.path);
1727+
// Books often have feature-gated example text.
1728+
rustbook_cmd.env("RUSTC_BOOTSTRAP", "1");
17261729
rustbook_cmd.env("PATH", new_path).arg("test").arg(path);
17271730
builder.add_rust_test_threads(&mut rustbook_cmd);
17281731
builder.info(&format!("Testing rustbook {}", self.path.display()));

0 commit comments

Comments
 (0)