mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 09:13:07 +03:00
Remove trivial cast in guaranteed_eq
I found this while accidentally breaking trivial casts in another branch.
This commit is contained in:
@@ -842,7 +842,7 @@ pub const fn guaranteed_eq(self, other: *const T) -> Option<bool>
|
||||
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),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user