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> {
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) ) ;
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments