Skip to content

Commit

Permalink
Remove trivial cast in guaranteed_eq
Browse files Browse the repository at this point in the history
I found this while accidentally breaking trivial casts in another
branch.
  • Loading branch information
Noratrieb committed Oct 15, 2023
1 parent ff5664d commit fe9d422
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/ptr/const_ptr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}
Expand Down

0 comments on commit fe9d422

Please sign in to comment.