From 97ce904340f416b47c2b9790d550346bef5d7f7f Mon Sep 17 00:00:00 2001 From: gnzlbg Date: Wed, 25 Sep 2019 10:33:12 +0200 Subject: [PATCH] Remove unreachable code --- src/librustc_mir/interpret/terminator.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/librustc_mir/interpret/terminator.rs b/src/librustc_mir/interpret/terminator.rs index a324c585124..8666c937ce4 100644 --- a/src/librustc_mir/interpret/terminator.rs +++ b/src/librustc_mir/interpret/terminator.rs @@ -249,11 +249,6 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> { match instance.def { ty::InstanceDef::Intrinsic(..) => { - if let Abi::RustIntrinsic | Abi::PlatformIntrinsic = caller_abi { - // ok - } else { - throw_unsup!(FunctionAbiMismatch(caller_abi, Abi::RustIntrinsic)) - } // The intrinsic itself cannot diverge, so if we got here without a return // place... (can happen e.g., for transmute returning `!`) let dest = match dest {