Skip to content

Commit 03e09d8

Browse files
authored
Unrolled build for rust-lang#116760
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
2 parents f70779b + fe9d422 commit 03e09d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: library/core/src/ptr/const_ptr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,7 @@ impl<T: ?Sized> *const T {
842842
where
843843
T: Sized,
844844
{
845-
match intrinsics::ptr_guaranteed_cmp(self as _, other as _) {
845+
match intrinsics::ptr_guaranteed_cmp(self, other) {
846846
2 => None,
847847
other => Some(other == 1),
848848
}

0 commit comments

Comments
 (0)