diff options
| author | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | 2023-10-15 12:33:44 +0200 |
|---|---|---|
| committer | Nilstrieb <48135649+Nilstrieb@users.noreply.github.com> | 2023-10-15 12:33:44 +0200 |
| commit | fe9d422e7b0e279bfb8cc348fdef409a100c8dac (patch) | |
| tree | f5653408fbc9649d9db10422a72257c7c14f9410 | |
| parent | ff5664d600b7d31b43f1109587dabe008bb73af1 (diff) | |
| download | rust-fe9d422e7b0e279bfb8cc348fdef409a100c8dac.tar.gz rust-fe9d422e7b0e279bfb8cc348fdef409a100c8dac.zip | |
Remove trivial cast in `guaranteed_eq`
I found this while accidentally breaking trivial casts in another branch.
| -rw-r--r-- | library/core/src/ptr/const_ptr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/ptr/const_ptr.rs b/library/core/src/ptr/const_ptr.rs index 9af8f1228f0..a3e4f0fb90a 100644 --- a/library/core/src/ptr/const_ptr.rs +++ b/library/core/src/ptr/const_ptr.rs @@ -842,7 +842,7 @@ impl<T: ?Sized> *const T { where T: Sized, { - match intrinsics::ptr_guaranteed_cmp(self as _, other as _) { + match intrinsics::ptr_guaranteed_cmp(self, other) { 2 => None, other => Some(other == 1), } |
