Make CodegenBackend::join_codegen
infallible.
Because they all are, in practice.
This commit is contained in:
parent
cbddf31863
commit
ede99234c4
6 changed files with 12 additions and 14 deletions
|
@ -233,11 +233,11 @@ impl CodegenBackend for CraneliftCodegenBackend {
|
|||
ongoing_codegen: Box<dyn Any>,
|
||||
sess: &Session,
|
||||
_outputs: &OutputFilenames,
|
||||
) -> Result<(CodegenResults, FxIndexMap<WorkProductId, WorkProduct>), ErrorGuaranteed> {
|
||||
Ok(ongoing_codegen
|
||||
) -> (CodegenResults, FxIndexMap<WorkProductId, WorkProduct>) {
|
||||
ongoing_codegen
|
||||
.downcast::<driver::aot::OngoingCodegen>()
|
||||
.unwrap()
|
||||
.join(sess, self.config.borrow().as_ref().unwrap()))
|
||||
.join(sess, self.config.borrow().as_ref().unwrap())
|
||||
}
|
||||
|
||||
fn link(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue