We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6af2d3c commit 7dc182dCopy full SHA for 7dc182d
compiler/rustc_mir_transform/src/abort_unwinding_calls.rs
@@ -41,6 +41,7 @@ impl<'tcx> MirPass<'tcx> for AbortUnwindingCalls {
41
ty::Closure(..) => Abi::RustCall,
42
ty::CoroutineClosure(..) => Abi::RustCall,
43
ty::Coroutine(..) => Abi::Rust,
44
+ ty::Error(_) => return,
45
_ => span_bug!(body.span, "unexpected body ty: {:?}", body_ty),
46
};
47
let body_can_unwind = layout::fn_can_unwind(tcx, Some(def_id), body_abi);
0 commit comments