We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4596f4f commit b123a66Copy full SHA for b123a66
src/bootstrap/test.rs
@@ -986,6 +986,7 @@ impl Step for RustdocGUI {
986
.arg("doc")
987
.arg("--target-dir")
988
.arg(&out_dir)
989
+ .env("RUSTC_BOOTSTRAP", "1")
990
.env("RUSTDOC", builder.rustdoc(self.compiler))
991
.env("RUSTC", builder.rustc(self.compiler))
992
.current_dir(path);
@@ -1725,6 +1726,8 @@ impl BookTest {
1725
1726
1727
let mut rustbook_cmd = builder.tool_cmd(Tool::Rustbook);
1728
let path = builder.src.join(&self.path);
1729
+ // Books often have feature-gated example text.
1730
+ rustbook_cmd.env("RUSTC_BOOTSTRAP", "1");
1731
rustbook_cmd.env("PATH", new_path).arg("test").arg(path);
1732
builder.add_rust_test_threads(&mut rustbook_cmd);
1733
builder.info(&format!("Testing rustbook {}", self.path.display()));
0 commit comments