about summary refs log tree commit diff
path: root/src/librustc
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-07-12 22:46:54 +0200
committerGitHub <noreply@github.com>2019-07-12 22:46:54 +0200
commitfe4e32a4e655846976475ef0a7dc5837eab796fe (patch)
treea060f5b049425798bdf7dc8470ae34c4e7e5b22b /src/librustc
parentb1d6163622398bf289ffb1d34503647e730f2b7c (diff)
parent44d27ba28df30f80d039f0486cac46d7fb265fa3 (diff)
downloadrust-fe4e32a4e655846976475ef0a7dc5837eab796fe.tar.gz
rust-fe4e32a4e655846976475ef0a7dc5837eab796fe.zip
Rollup merge of #62623 - pnkfelix:issue-62614-downgrade-indirect-structural-match-lint-to-allow, r=zackmdavis
downgrade indirect_structural_match lint to allow

This is a short-term band-aid for the regression aspect of #62614.
Diffstat (limited to 'src/librustc')
-rw-r--r--src/librustc/lint/builtin.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/librustc/lint/builtin.rs b/src/librustc/lint/builtin.rs
index 9b4b97202d9..d1cae76de60 100644
--- a/src/librustc/lint/builtin.rs
+++ b/src/librustc/lint/builtin.rs
@@ -350,7 +350,8 @@ declare_lint! {
 
 declare_lint! {
     pub INDIRECT_STRUCTURAL_MATCH,
-    Warn,
+    // defaulting to allow until rust-lang/rust#62614 is fixed.
+    Allow,
     "pattern with const indirectly referencing non-`#[structural_match]` type"
 }
 
@@ -451,6 +452,7 @@ declare_lint_pass! {
         AMBIGUOUS_ASSOCIATED_ITEMS,
         NESTED_IMPL_TRAIT,
         MUTABLE_BORROW_RESERVATION_CONFLICT,
+        INDIRECT_STRUCTURAL_MATCH,
     ]
 }