]> git.lizzy.rs Git - rust.git/blobdiff - src/bootstrap/test.rs
Rollup merge of #95836 - workingjubilee:doctest-exe, r=notriddle
[rust.git] / src / bootstrap / test.rs
index b22b7ad4ae04a7b28ed8e1cd347d78eff9754e50..a69979d7f073a83d7ae2da771110c0ef39cc52da 100644 (file)
@@ -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);
             }