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
a387b71b0c
6 changed files with 12 additions and 14 deletions
|
@ -369,7 +369,7 @@ impl CodegenBackend for LlvmCodegenBackend {
|
|||
ongoing_codegen: Box<dyn Any>,
|
||||
sess: &Session,
|
||||
outputs: &OutputFilenames,
|
||||
) -> Result<(CodegenResults, FxIndexMap<WorkProductId, WorkProduct>), ErrorGuaranteed> {
|
||||
) -> (CodegenResults, FxIndexMap<WorkProductId, WorkProduct>) {
|
||||
let (codegen_results, work_products) = ongoing_codegen
|
||||
.downcast::<rustc_codegen_ssa::back::write::OngoingCodegen<LlvmCodegenBackend>>()
|
||||
.expect("Expected LlvmCodegenBackend's OngoingCodegen, found Box<Any>")
|
||||
|
@ -382,7 +382,7 @@ impl CodegenBackend for LlvmCodegenBackend {
|
|||
});
|
||||
}
|
||||
|
||||
Ok((codegen_results, work_products))
|
||||
(codegen_results, work_products)
|
||||
}
|
||||
|
||||
fn link(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue