Skip to content

Commit bc5f4c4

Browse files
committed
Switch boolean checks
1 parent 8ea0973 commit bc5f4c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_trait_selection/src/traits/coherence.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ where
8787
if let (Some(t1), Some(t2)) = (t1, t2) {
8888
// Simplified successfully
8989
// Types cannot unify if they differ in their reference mutability or simplify to different types
90-
ty1.ref_mutability() != ty2.ref_mutability() || t1 != t2
90+
t1 != t2 || ty1.ref_mutability() != ty2.ref_mutability()
9191
} else {
9292
// Types might unify
9393
false

0 commit comments

Comments
 (0)