Skip to content

Commit 9beb57a

Browse files
committed
do not enable validate-mir for std in stage 0
1 parent 8637c7d commit 9beb57a

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/bootstrap/builder.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1871,7 +1871,7 @@ impl<'a> Builder<'a> {
18711871
}
18721872
}
18731873

1874-
if matches!(mode, Mode::Std) {
1874+
if matches!(mode, Mode::Std) && compiler.stage != 0 {
18751875
if let Some(mir_opt_level) = self.config.rust_validate_mir_opts {
18761876
rustflags.arg("-Zvalidate-mir");
18771877
rustflags.arg(&format!("-Zmir-opt-level={}", mir_opt_level));

src/tools/compiletest/src/runtest.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1961,7 +1961,6 @@ impl<'test> TestCx<'test> {
19611961
let mut dir_opt = "-Zdump-mir-dir=".to_string();
19621962
dir_opt.push_str(mir_dump_dir.to_str().unwrap());
19631963
debug!("dir_opt: {:?}", dir_opt);
1964-
19651964
rustc.arg(dir_opt);
19661965
}
19671966
RunPassValgrind | Pretty | DebugInfo | Codegen | Rustdoc | RustdocJson | RunMake

0 commit comments

Comments
 (0)