Skip to content

Commit

Permalink
fix part of comparison that would always evaluate to "true", probably…
Browse files Browse the repository at this point in the history
… an oversight
  • Loading branch information
matthiaskrgr committed Jul 31, 2020
1 parent 62f9aa9 commit 8a5654f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_lint/builtin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)) => {
Expand Down

0 comments on commit 8a5654f

Please sign in to comment.