1
Fork 0

Make ptr_guaranteed_cmp a rustc_intrinsic and favor its body over backends implementing it

This commit is contained in:
Oli Scherer 2024-03-05 17:50:07 +00:00
parent e0d67aeb0b
commit 3e5c468662
4 changed files with 19 additions and 24 deletions

View file

@ -441,7 +441,7 @@ pub fn check_intrinsic_type(
sym::ptr_guaranteed_cmp => (
1,
0,
1,
vec![Ty::new_imm_ptr(tcx, param(0)), Ty::new_imm_ptr(tcx, param(0))],
tcx.types.u8,
),