diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2022-09-06 14:08:59 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2022-09-09 15:16:04 +0000 |
| commit | 931c07c94f5e6d2e24c08a1c4941612aab69872a (patch) | |
| tree | c6fef146a12d2ffac6ae8aa93e9e2eeee99f97ae | |
| parent | b8169a6da07f123cda26b5903e3d6032dd00efb9 (diff) | |
| download | rust-931c07c94f5e6d2e24c08a1c4941612aab69872a.tar.gz rust-931c07c94f5e6d2e24c08a1c4941612aab69872a.zip | |
The `<*const T>::guaranteed_*` methods now return an option for the unknown case
| -rw-r--r-- | src/intrinsics/mod.rs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/intrinsics/mod.rs b/src/intrinsics/mod.rs index 39e9e784a47..586c9489dd4 100644 --- a/src/intrinsics/mod.rs +++ b/src/intrinsics/mod.rs @@ -819,20 +819,13 @@ fn codegen_regular_intrinsic_call<'tcx>( ret.write_cvalue(fx, val); } - sym::ptr_guaranteed_eq => { + sym::ptr_guaranteed_cmp => { intrinsic_args!(fx, args => (a, b); intrinsic); let val = crate::num::codegen_ptr_binop(fx, BinOp::Eq, a, b); ret.write_cvalue(fx, val); } - sym::ptr_guaranteed_ne => { - intrinsic_args!(fx, args => (a, b); intrinsic); - - let val = crate::num::codegen_ptr_binop(fx, BinOp::Ne, a, b); - ret.write_cvalue(fx, val); - } - sym::caller_location => { intrinsic_args!(fx, args => (); intrinsic); |
