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