File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -1871,7 +1871,7 @@ impl<'a> Builder<'a> {
1871
1871
}
1872
1872
}
1873
1873
1874
- if matches ! ( mode, Mode :: Std ) {
1874
+ if matches ! ( mode, Mode :: Std ) && compiler . stage != 0 {
1875
1875
if let Some ( mir_opt_level) = self . config . rust_validate_mir_opts {
1876
1876
rustflags. arg ( "-Zvalidate-mir" ) ;
1877
1877
rustflags. arg ( & format ! ( "-Zmir-opt-level={}" , mir_opt_level) ) ;
Original file line number Diff line number Diff line change @@ -1961,7 +1961,6 @@ impl<'test> TestCx<'test> {
1961
1961
let mut dir_opt = "-Zdump-mir-dir=" . to_string ( ) ;
1962
1962
dir_opt. push_str ( mir_dump_dir. to_str ( ) . unwrap ( ) ) ;
1963
1963
debug ! ( "dir_opt: {:?}" , dir_opt) ;
1964
-
1965
1964
rustc. arg ( dir_opt) ;
1966
1965
}
1967
1966
RunPassValgrind | Pretty | DebugInfo | Codegen | Rustdoc | RustdocJson | RunMake
You can’t perform that action at this time.
0 commit comments