We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8637c7d commit 9beb57aCopy full SHA for 9beb57a
src/bootstrap/builder.rs
@@ -1871,7 +1871,7 @@ impl<'a> Builder<'a> {
1871
}
1872
1873
1874
- if matches!(mode, Mode::Std) {
+ if matches!(mode, Mode::Std) && compiler.stage != 0 {
1875
if let Some(mir_opt_level) = self.config.rust_validate_mir_opts {
1876
rustflags.arg("-Zvalidate-mir");
1877
rustflags.arg(&format!("-Zmir-opt-level={}", mir_opt_level));
src/tools/compiletest/src/runtest.rs
@@ -1961,7 +1961,6 @@ impl<'test> TestCx<'test> {
1961
let mut dir_opt = "-Zdump-mir-dir=".to_string();
1962
dir_opt.push_str(mir_dump_dir.to_str().unwrap());
1963
debug!("dir_opt: {:?}", dir_opt);
1964
-
1965
rustc.arg(dir_opt);
1966
1967
RunPassValgrind | Pretty | DebugInfo | Codegen | Rustdoc | RustdocJson | RunMake
0 commit comments