We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b26e01b commit ce70c6fCopy full SHA for ce70c6f
src/bootstrap/test.rs
@@ -964,6 +964,7 @@ impl Step for RustdocGUI {
964
.arg("doc")
965
.arg("--target-dir")
966
.arg(&out_dir)
967
+ .env("RUSTC_BOOTSTRAP", "1")
968
.env("RUSTDOC", builder.rustdoc(self.compiler))
969
.env("RUSTC", builder.rustc(self.compiler))
970
.current_dir(path);
@@ -1699,6 +1700,8 @@ impl BookTest {
1699
1700
1701
let mut rustbook_cmd = builder.tool_cmd(Tool::Rustbook);
1702
let path = builder.src.join(&self.path);
1703
+ // Books often have feature-gated example text.
1704
+ rustbook_cmd.env("RUSTC_BOOTSTRAP", "1");
1705
rustbook_cmd.env("PATH", new_path).arg("test").arg(path);
1706
builder.add_rust_test_threads(&mut rustbook_cmd);
1707
builder.info(&format!("Testing rustbook {}", self.path.display()));
0 commit comments