X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fbootstrap%2Ftest.rs;h=a69979d7f073a83d7ae2da771110c0ef39cc52da;hb=aff003becd8b6bf803202e958623031274ad69c9;hp=b22b7ad4ae04a7b28ed8e1cd347d78eff9754e50;hpb=db5f005f35ee8abdf772d518fea09fcadd97fb43;p=rust.git diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs index b22b7ad4ae0..a69979d7f07 100644 --- a/src/bootstrap/test.rs +++ b/src/bootstrap/test.rs @@ -473,7 +473,7 @@ pub fn build_miri_sysroot( miri: &Path, target: TargetSelection, ) -> String { - let miri_sysroot = builder.out.join(compiler.host.triple).join("miri-sysrot"); + let miri_sysroot = builder.out.join(compiler.host.triple).join("miri-sysroot"); let mut cargo = tool::prepare_tool_cargo( builder, compiler, @@ -1011,6 +1011,8 @@ fn run(self, builder: &Builder<'_>) { // instead of hard-coding this test if entry.file_name() == "link_to_definition" { cargo.env("RUSTDOCFLAGS", "-Zunstable-options --generate-link-to-definition"); + } else if entry.file_name() == "scrape_examples" { + cargo.arg("-Zrustdoc-scrape-examples=examples"); } builder.run(&mut cargo); }