Skip to content

Commit

Permalink
Unrolled build for rust-lang#116760
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#116760 - Nilstrieb:triviality, r=oli-obk

Remove trivial cast in `guaranteed_eq`

I found this while accidentally breaking trivial casts in another branch.

r? oli-obk
  • Loading branch information
rust-timer authored Oct 15, 2023
2 parents f70779b + fe9d422 commit 03e09d8
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 03e09d8

Please sign in to comment.