File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
tests/run-make/reset-codegen-1 Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1010use run_make_support:: { rustc, tmp_dir} ;
1111use std:: fs;
1212
13- fn compile ( emit : Option < & str > , output_dir : & str ) {
13+ fn compile ( output_file : & str , emit : Option < & str > ) {
1414 let mut rustc = rustc ( ) ;
15- let rustc = rustc. codegen_units ( 4 ) . output ( tmp_dir ( ) . join ( output_dir ) ) . input ( "foo.rs" ) ;
15+ let rustc = rustc. codegen_units ( 4 ) . output ( tmp_dir ( ) . join ( output_file ) ) . input ( "foo.rs" ) ;
1616 if let Some ( emit) = emit {
1717 rustc. emit ( emit) ;
1818 }
@@ -30,9 +30,9 @@ fn main() {
3030 ( "dep-output" , Some ( "dep-info" ) ) ,
3131 ( "multi-output" , Some ( "asm,obj" ) ) ,
3232 ] ;
33- for ( output_dir , emit) in flags {
34- fs:: remove_file ( output_dir ) . unwrap_or_default ( ) ;
35- compile ( emit , output_dir ) ;
36- fs:: remove_file ( output_dir ) ;
33+ for ( output_file , emit) in flags {
34+ fs:: remove_file ( output_file ) . unwrap_or_default ( ) ;
35+ compile ( output_file , emit ) ;
36+ fs:: remove_file ( output_file ) ;
3737 }
3838}
You can’t perform that action at this time.
0 commit comments