Skip to content

Commit fa4f1b7

Browse files
committed
Fix incorrect unwrap of dest
1 parent 1991018 commit fa4f1b7

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/librustc_mir/interpret/terminator.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -269,12 +269,6 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
269269
throw_unsup!(FunctionAbiMismatch(caller_abi, Abi::RustIntrinsic))
270270
}
271271

272-
// The intrinsic itself cannot diverge, so if we got here without a return
273-
// place... (can happen e.g., for transmute returning `!`)
274-
let dest = match dest {
275-
Some(dest) => dest,
276-
None => throw_ub!(Unreachable)
277-
};
278272
M::call_intrinsic(self, span, instance, args, dest)?;
279273
// No stack frame gets pushed, the main loop will just act as if the
280274
// call completed.

0 commit comments

Comments
 (0)