Skip to content

Commit d87e2da

Browse files
committed
Remove old intrinsic check
1 parent fa4f1b7 commit d87e2da

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
@@ -264,11 +264,6 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
264264

265265
match instance.def {
266266
ty::InstanceDef::Intrinsic(..) => {
267-
268-
if caller_abi != Abi::RustIntrinsic {
269-
throw_unsup!(FunctionAbiMismatch(caller_abi, Abi::RustIntrinsic))
270-
}
271-
272267
M::call_intrinsic(self, span, instance, args, dest)?;
273268
// No stack frame gets pushed, the main loop will just act as if the
274269
// call completed.

0 commit comments

Comments
 (0)