Skip to content

Commit 86a7c55

Browse files
committed
Auto merge of #1465 - nbdd0121:patch-1, r=RalfJung
Remove likely and unlikely from intrinsics shim They are now implemented in MIR interpreter by rust-lang/rust#73778
2 parents e7ef64f + c5b324b commit 86a7c55

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/shims/intrinsics.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -523,16 +523,6 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
523523
let &[_] = check_arg_count(args)?;
524524
}
525525

526-
#[rustfmt::skip]
527-
| "likely"
528-
| "unlikely"
529-
=> {
530-
// These just return their argument
531-
let &[b] = check_arg_count(args)?;
532-
let b = this.read_immediate(b)?;
533-
this.write_immediate(*b, dest)?;
534-
}
535-
536526
"try" => return this.handle_try(args, dest, ret),
537527

538528
name => throw_unsup_format!("unimplemented intrinsic: {}", name),

0 commit comments

Comments
 (0)