Skip to content

Commit 97ce904

Browse files
committed
Remove unreachable code
1 parent 3a6e96e commit 97ce904

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/librustc_mir/interpret/terminator.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -249,11 +249,6 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
249249

250250
match instance.def {
251251
ty::InstanceDef::Intrinsic(..) => {
252-
if let Abi::RustIntrinsic | Abi::PlatformIntrinsic = caller_abi {
253-
// ok
254-
} else {
255-
throw_unsup!(FunctionAbiMismatch(caller_abi, Abi::RustIntrinsic))
256-
}
257252
// The intrinsic itself cannot diverge, so if we got here without a return
258253
// place... (can happen e.g., for transmute returning `!`)
259254
let dest = match dest {

0 commit comments

Comments
 (0)