diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-07-12 22:46:54 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-12 22:46:54 +0200 |
| commit | fe4e32a4e655846976475ef0a7dc5837eab796fe (patch) | |
| tree | a060f5b049425798bdf7dc8470ae34c4e7e5b22b /src/test/ui/issues | |
| parent | b1d6163622398bf289ffb1d34503647e730f2b7c (diff) | |
| parent | 44d27ba28df30f80d039f0486cac46d7fb265fa3 (diff) | |
| download | rust-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/test/ui/issues')
| -rw-r--r-- | src/test/ui/issues/issue-55511.rs | 2 | ||||
| -rw-r--r-- | src/test/ui/issues/issue-55511.stderr | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/test/ui/issues/issue-55511.rs b/src/test/ui/issues/issue-55511.rs index 42c6f24b36a..055886bf367 100644 --- a/src/test/ui/issues/issue-55511.rs +++ b/src/test/ui/issues/issue-55511.rs @@ -1,5 +1,5 @@ +#![warn(indirect_structural_match)] use std::cell::Cell; - trait Foo<'a> { const C: Option<Cell<&'a u32>>; } diff --git a/src/test/ui/issues/issue-55511.stderr b/src/test/ui/issues/issue-55511.stderr index c0f702e4fab..e094256f5c8 100644 --- a/src/test/ui/issues/issue-55511.stderr +++ b/src/test/ui/issues/issue-55511.stderr @@ -4,7 +4,11 @@ warning: to use a constant of type `std::cell::Cell` in a pattern, `std::cell::C LL | <() as Foo<'static>>::C => { } | ^^^^^^^^^^^^^^^^^^^^^^^ | - = note: #[warn(indirect_structural_match)] on by default +note: lint level defined here + --> $DIR/issue-55511.rs:1:9 + | +LL | #![warn(indirect_structural_match)] + | ^^^^^^^^^^^^^^^^^^^^^^^^^ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: for more information, see issue #62411 <https://github.com/rust-lang/rust/issues/62411> |
