File tree 1 file changed +6
-6
lines changed
tests/run-make/reset-codegen-1
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 10
10
use run_make_support:: { rustc, tmp_dir} ;
11
11
use std:: fs;
12
12
13
- fn compile ( emit : Option < & str > , output_dir : & str ) {
13
+ fn compile ( output_file : & str , emit : Option < & str > ) {
14
14
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" ) ;
16
16
if let Some ( emit) = emit {
17
17
rustc. emit ( emit) ;
18
18
}
@@ -30,9 +30,9 @@ fn main() {
30
30
( "dep-output" , Some ( "dep-info" ) ) ,
31
31
( "multi-output" , Some ( "asm,obj" ) ) ,
32
32
] ;
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 ) ;
37
37
}
38
38
}
You can’t perform that action at this time.
0 commit comments