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
This commit is contained in:
Yuki Okushi 2020-08-01 08:02:11 +09:00 committed by GitHub
commit ff5ccc82eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)) => {