Skip to content

Commit 931c07c

Browse files
committed
The <*const T>::guaranteed_* methods now return an option for the unknown case
1 parent b8169a6 commit 931c07c

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/intrinsics/mod.rs

+1-8
Original file line numberDiff line numberDiff line change
@@ -819,20 +819,13 @@ fn codegen_regular_intrinsic_call<'tcx>(
819819
ret.write_cvalue(fx, val);
820820
}
821821

822-
sym::ptr_guaranteed_eq => {
822+
sym::ptr_guaranteed_cmp => {
823823
intrinsic_args!(fx, args => (a, b); intrinsic);
824824

825825
let val = crate::num::codegen_ptr_binop(fx, BinOp::Eq, a, b);
826826
ret.write_cvalue(fx, val);
827827
}
828828

829-
sym::ptr_guaranteed_ne => {
830-
intrinsic_args!(fx, args => (a, b); intrinsic);
831-
832-
let val = crate::num::codegen_ptr_binop(fx, BinOp::Ne, a, b);
833-
ret.write_cvalue(fx, val);
834-
}
835-
836829
sym::caller_location => {
837830
intrinsic_args!(fx, args => (); intrinsic);
838831

0 commit comments

Comments
 (0)