mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-26 06:35:27 +00:00
Switch boolean checks
This commit is contained in:
parent
8ea0973725
commit
bc5f4c4860
@ -87,7 +87,7 @@ where
|
||||
if let (Some(t1), Some(t2)) = (t1, t2) {
|
||||
// Simplified successfully
|
||||
// Types cannot unify if they differ in their reference mutability or simplify to different types
|
||||
ty1.ref_mutability() != ty2.ref_mutability() || t1 != t2
|
||||
t1 != t2 || ty1.ref_mutability() != ty2.ref_mutability()
|
||||
} else {
|
||||
// Types might unify
|
||||
false
|
||||
|
Loading…
Reference in New Issue
Block a user