mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-28 20:16:58 +03:00
Add sess.abort_if_errors() to link
This commit is contained in:
@@ -234,6 +234,8 @@ fn link(
|
||||
) -> Result<(), ErrorReported> {
|
||||
use rustc_codegen_ssa::back::link::link_binary;
|
||||
|
||||
sess.abort_if_errors();
|
||||
|
||||
let codegen_results = *res
|
||||
.downcast::<CodegenResults>()
|
||||
.expect("Expected CraneliftCodegenBackend's CodegenResult, found Box<Any>");
|
||||
|
||||
Reference in New Issue
Block a user