Remove trivial cast in guaranteed_eq
I found this while accidentally breaking trivial casts in another branch.
This commit is contained in:
parent
ff5664d600
commit
fe9d422e7b
1 changed files with 1 additions and 1 deletions
|
@ -842,7 +842,7 @@ impl<T: ?Sized> *const T {
|
||||||
where
|
where
|
||||||
T: Sized,
|
T: Sized,
|
||||||
{
|
{
|
||||||
match intrinsics::ptr_guaranteed_cmp(self as _, other as _) {
|
match intrinsics::ptr_guaranteed_cmp(self, other) {
|
||||||
2 => None,
|
2 => None,
|
||||||
other => Some(other == 1),
|
other => Some(other == 1),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue