mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
Rollup merge of #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
This commit is contained in:
commit
32da83d338
@ -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),
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user