Rollup merge of #121209 - nnethercote:infallible-join_codegen, r=bjorn3
Make `CodegenBackend::join_codegen` infallible. Because they all are, in practice. r? ```@bjorn3```
This commit is contained in:
commit
f7143af56c
@ -233,11 +233,11 @@ fn join_codegen(
|
|||||||
ongoing_codegen: Box<dyn Any>,
|
ongoing_codegen: Box<dyn Any>,
|
||||||
sess: &Session,
|
sess: &Session,
|
||||||
_outputs: &OutputFilenames,
|
_outputs: &OutputFilenames,
|
||||||
) -> Result<(CodegenResults, FxIndexMap<WorkProductId, WorkProduct>), ErrorGuaranteed> {
|
) -> (CodegenResults, FxIndexMap<WorkProductId, WorkProduct>) {
|
||||||
Ok(ongoing_codegen
|
ongoing_codegen
|
||||||
.downcast::<driver::aot::OngoingCodegen>()
|
.downcast::<driver::aot::OngoingCodegen>()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.join(sess, self.config.borrow().as_ref().unwrap()))
|
.join(sess, self.config.borrow().as_ref().unwrap())
|
||||||
}
|
}
|
||||||
|
|
||||||
fn link(
|
fn link(
|
||||||
|
Loading…
Reference in New Issue
Block a user