Skip to content

Commit ff01b2e

Browse files
committed
rename to output_file and swap args
1 parent 8b2b3b2 commit ff01b2e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/run-make/reset-codegen-1/rmake.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
use run_make_support::{rustc, tmp_dir};
1111
use 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
}

0 commit comments

Comments
 (0)