diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2020-07-31 21:23:39 +0200 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2020-07-31 21:23:39 +0200 |
| commit | 8a5654f53c434466d913e18f50e661098e0c3e9a (patch) | |
| tree | 552ed0f5c230ade12f9523a7d0580d739242db2b /src | |
| parent | 62f9aa94c0d0312544589bed78679d85646d4e62 (diff) | |
| download | rust-8a5654f53c434466d913e18f50e661098e0c3e9a.tar.gz rust-8a5654f53c434466d913e18f50e661098e0c3e9a.zip | |
fix part of comparison that would always evaluate to "true", probably an oversight
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc_lint/builtin.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_lint/builtin.rs b/src/librustc_lint/builtin.rs index 06e7c2b6f36..e32c8fbee68 100644 --- a/src/librustc_lint/builtin.rs +++ b/src/librustc_lint/builtin.rs @@ -2209,7 +2209,7 @@ impl ClashingExternDeclarations { } (Slice(a_ty), Slice(b_ty)) => Self::structurally_same_type(cx, a_ty, b_ty, ckind), (RawPtr(a_tymut), RawPtr(b_tymut)) => { - a_tymut.mutbl == a_tymut.mutbl + a_tymut.mutbl == b_tymut.mutbl && Self::structurally_same_type(cx, &a_tymut.ty, &b_tymut.ty, ckind) } (Ref(_a_region, a_ty, a_mut), Ref(_b_region, b_ty, b_mut)) => { |
