diff options
| author | Ryan Levick <me@ryanlevick.com> | 2021-02-12 17:22:19 +0100 |
|---|---|---|
| committer | Ryan Levick <me@ryanlevick.com> | 2021-02-12 17:22:19 +0100 |
| commit | bc5f4c4860d0d1ff05deba9ffb36ffdc9e4a3e96 (patch) | |
| tree | 5af5147dc0e8e4339821138fc539172b76cf7b54 | |
| parent | 8ea0973725f18ea3d392b7558165c0fecc589eb8 (diff) | |
| download | rust-bc5f4c4860d0d1ff05deba9ffb36ffdc9e4a3e96.tar.gz rust-bc5f4c4860d0d1ff05deba9ffb36ffdc9e4a3e96.zip | |
Switch boolean checks
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/coherence.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/coherence.rs b/compiler/rustc_trait_selection/src/traits/coherence.rs index afe86b2a231..82ae4c72773 100644 --- a/compiler/rustc_trait_selection/src/traits/coherence.rs +++ b/compiler/rustc_trait_selection/src/traits/coherence.rs @@ -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 |
