Skip to content

Commit 80c2c80

Browse files
committed
Remove structural equiv check for Array const.
1 parent a1fa4e0 commit 80c2c80

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/librustc_lint/builtin.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2254,9 +2254,6 @@ impl ClashingExternDeclarations {
22542254
(Array(a_ty, a_const), Array(b_ty, b_const)) => {
22552255
// For arrays, we also check the constness of the type.
22562256
a_const.val == b_const.val
2257-
&& structurally_same_type_impl(
2258-
seen_types, cx, a_const.ty, b_const.ty, ckind,
2259-
)
22602257
&& structurally_same_type_impl(
22612258
seen_types, cx, a_ty, b_ty, ckind,
22622259
)

0 commit comments

Comments
 (0)