about summary refs log tree commit diff
diff options
context:
space:
mode:
authorjumbatm <30644300+jumbatm@users.noreply.github.com>2020-08-16 10:47:35 +1000
committerjumbatm <30644300+jumbatm@users.noreply.github.com>2020-08-18 02:01:04 +1000
commit80c2c80d52e2384ee6ce33a7b41c0c47c4f0ffd1 (patch)
tree17f003e338a10175efc46661bfad75fd0ba5ff3d
parenta1fa4e05acb2cbda9a02cc34f8000c965328dbde (diff)
downloadrust-80c2c80d52e2384ee6ce33a7b41c0c47c4f0ffd1.tar.gz
rust-80c2c80d52e2384ee6ce33a7b41c0c47c4f0ffd1.zip
Remove structural equiv check for Array const.
-rw-r--r--src/librustc_lint/builtin.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/librustc_lint/builtin.rs b/src/librustc_lint/builtin.rs
index 47f680932f1..2cf0ed390f4 100644
--- a/src/librustc_lint/builtin.rs
+++ b/src/librustc_lint/builtin.rs
@@ -2255,9 +2255,6 @@ impl ClashingExternDeclarations {
                                 // For arrays, we also check the constness of the type.
                                 a_const.val == b_const.val
                                     && structurally_same_type_impl(
-                                        seen_types, cx, a_const.ty, b_const.ty, ckind,
-                                    )
-                                    && structurally_same_type_impl(
                                         seen_types, cx, a_ty, b_ty, ckind,
                                     )
                             }