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