Skip to content

Commit 592b140

Browse files
committed
Auto merge of #1482 - canova:remote-unreachable, r=RalfJung
Remove unreachable intrinsic This is now supported by the interpreter with rust-lang/rust#74459. We can remove this intrinsic implementation here. This is covered by this test: https://github.com/rust-lang/miri/blob/master/tests/compile-fail/unreachable.rs I guess we need to wait until the rust-lang/rust PR merges into nightly, and then we can update `rust-version` hash in the PR, right? r? @oli-obk
2 parents 67e7eb4 + d1aee69 commit 592b140

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/shims/intrinsics.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
3737
let (dest, ret) = match ret {
3838
None => match intrinsic_name {
3939
"miri_start_panic" => return this.handle_miri_start_panic(args, unwind),
40-
"unreachable" => throw_ub!(Unreachable),
4140
_ => throw_unsup_format!("unimplemented (diverging) intrinsic: {}", intrinsic_name),
4241
},
4342
Some(p) => p,

0 commit comments

Comments
 (0)