diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-02-17 10:51:35 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-02-17 10:51:35 +1100 |
| commit | 0fd329b96a613dafb6c3efbf2d17677d6eef417a (patch) | |
| tree | 32ef64f45846c1d7d00548e0ef22279f03695028 /src | |
| parent | f90a0b9a18995b7468da1126979a7b7576768fee (diff) | |
| download | rust-0fd329b96a613dafb6c3efbf2d17677d6eef417a.tar.gz rust-0fd329b96a613dafb6c3efbf2d17677d6eef417a.zip | |
Make `CodegenBackend::join_codegen` infallible.
Because they all are, in practice.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib.rs b/src/lib.rs index 7c432e9c590..7e2e1f7c6ac 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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( |
