288 if run.builder.top_stage == 0 {
289 eprintln!(
290▶ "ERROR: running cargotest with stage 0 is currently unsupported. Use at least stage 1."
291 );
292 exit!(1);
· · ·
723
724 // Miri has its own "target dir" for ui test dependencies. Make sure it gets cleared when
725▶ // the sysroot gets rebuilt, to avoid "found possibly newer version of crate `std`" errors.
726 if !builder.config.dry_run() {
727 // This has to match `CARGO_TARGET_TMPDIR` in Miri's `ui.rs`.
· · ·
783 // `MIRI_SKIP_UI_CHECKS` and `RUSTC_BLESS` are incompatible
784 cargo.env_remove("RUSTC_BLESS");
785▶ // Optimizations can change error locations and remove UB so don't run `fail` tests.
786 cargo.args(["tests/pass", "tests/panic"]);
787
· · ·
906 if builder.top_stage == 0 && !builder.config.compiletest_allow_stage0 {
907 eprintln!("\
908▶ERROR: `--stage 0` causes compiletest to query information from the stage0 (precompiled) compiler, instead of the in-tree compiler, which can cause some tests to fail inappropriately
909NOTE: if you're sure you want to do this, please open an issue as to why. In the meantime, you can override this with `--set build.compiletest-allow-stage0=true`."
910 );
· · ·
1083 let _guard = builder.msg_test("clippy", target, target_compiler.stage);
1084
1085▶ // Clippy reports errors if it blessed the outputs
1086 if cargo.allow_failure().run(builder) {
1087 // The tests succeeded; nothing to do.
+ 20 more matches in this file