Make CodegenBackend::join_codegen
infallible.
Because they all are, in practice.
This commit is contained in:
parent
5a12a89992
commit
7b1ac28f1c
@ -217,13 +217,11 @@ impl CodegenBackend for GccCodegenBackend {
|
|||||||
Box::new(res)
|
Box::new(res)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn join_codegen(&self, ongoing_codegen: Box<dyn Any>, sess: &Session, _outputs: &OutputFilenames) -> Result<(CodegenResults, FxIndexMap<WorkProductId, WorkProduct>), ErrorGuaranteed> {
|
fn join_codegen(&self, ongoing_codegen: Box<dyn Any>, sess: &Session, _outputs: &OutputFilenames) -> (CodegenResults, FxIndexMap<WorkProductId, WorkProduct>) {
|
||||||
let (codegen_results, work_products) = ongoing_codegen
|
ongoing_codegen
|
||||||
.downcast::<rustc_codegen_ssa::back::write::OngoingCodegen<GccCodegenBackend>>()
|
.downcast::<rustc_codegen_ssa::back::write::OngoingCodegen<GccCodegenBackend>>()
|
||||||
.expect("Expected GccCodegenBackend's OngoingCodegen, found Box<Any>")
|
.expect("Expected GccCodegenBackend's OngoingCodegen, found Box<Any>")
|
||||||
.join(sess);
|
.join(sess)
|
||||||
|
|
||||||
Ok((codegen_results, work_products))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn link(&self, sess: &Session, codegen_results: CodegenResults, outputs: &OutputFilenames) -> Result<(), ErrorGuaranteed> {
|
fn link(&self, sess: &Session, codegen_results: CodegenResults, outputs: &OutputFilenames) -> Result<(), ErrorGuaranteed> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user