1
Fork 0

Use fixed type for CodegenResults

This also moves the -Zno-link implementation to rustc_interface
This commit is contained in:
bjorn3 2020-10-10 16:18:36 +02:00
parent f141acf067
commit 69f26b7761
4 changed files with 23 additions and 27 deletions

View file

@ -599,7 +599,7 @@ impl RustcDefaultCalls {
let codegen_results: CodegenResults = json::decode(&rlink_data).unwrap_or_else(|err| {
sess.fatal(&format!("failed to decode rlink: {}", err));
});
compiler.codegen_backend().link(&sess, Box::new(codegen_results), &outputs)
compiler.codegen_backend().link(&sess, codegen_results, &outputs)
} else {
sess.fatal("rlink must be a file")
}