Skip to content

Commit ff5ccc8

Browse files
authored
Rollup merge of #74986 - matthiaskrgr:cmp_true, r=oli-obk
fix part of comparison that would always evaluate to "true", probably an oversight cc @jumbatm
2 parents bb397c4 + 8a5654f commit ff5ccc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_lint/builtin.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2209,7 +2209,7 @@ impl ClashingExternDeclarations {
22092209
}
22102210
(Slice(a_ty), Slice(b_ty)) => Self::structurally_same_type(cx, a_ty, b_ty, ckind),
22112211
(RawPtr(a_tymut), RawPtr(b_tymut)) => {
2212-
a_tymut.mutbl == a_tymut.mutbl
2212+
a_tymut.mutbl == b_tymut.mutbl
22132213
&& Self::structurally_same_type(cx, &a_tymut.ty, &b_tymut.ty, ckind)
22142214
}
22152215
(Ref(_a_region, a_ty, a_mut), Ref(_b_region, b_ty, b_mut)) => {

0 commit comments

Comments
 (0)