We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5de2a24 commit 5e41ec2Copy full SHA for 5e41ec2
src/librustc_driver/driver.rs
@@ -1084,10 +1084,9 @@ pub fn phase_5_run_llvm_passes(sess: &Session,
1084
// are going to build an executable
1085
if sess.opts.output_types.contains_key(&OutputType::Exe) {
1086
let f = outputs.path(OutputType::Object);
1087
- fs::copy(&f,
+ fs::rename(&f,
1088
f.with_file_name(format!("{}.0.o",
1089
f.file_stem().unwrap().to_string_lossy()))).unwrap();
1090
- fs::remove_file(f).unwrap();
1091
}
1092
1093
// Remove assembly source, unless --save-temps was specified
0 commit comments