Skip to content

Commit fe8ff72

Browse files
authored
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 2bc2522 + fe9d422 commit fe8ff72

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)