X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fbootstrap%2Ftest.rs;h=38873cee93bd982475849358869314fca0a41eac;hb=70f8737b2f5d3bf7d6b784fad00b663b7ff9feda;hp=d40452a94a3d6ddc0b84ee493bb0aa2113f1b552;hpb=80d535966c93136fff0de7f30539b19c5f7e2d3d;p=rust.git diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs index d40452a94a3..38873cee93b 100644 --- a/src/bootstrap/test.rs +++ b/src/bootstrap/test.rs @@ -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); } @@ -1671,6 +1673,10 @@ fn run(self, builder: &Builder<'_>) { cmd.arg("--channel").arg(&builder.config.channel); + if let Some(commit) = builder.config.download_rustc_commit() { + cmd.env("FAKE_DOWNLOAD_RUSTC_PREFIX", format!("/rustc/{commit}")); + } + builder.ci_env.force_coloring_in_ci(&mut cmd); builder.info(&format!(