Skip to content

Commit c5b324b

Browse files
authored
Remove likely and unlikely from intrinsics shim
They are now implemented in MIR interpreter by rust-lang/rust#73778
1 parent e7ef64f commit c5b324b

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)