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.
This commit is contained in:
commit
fe4e32a4e6
15 changed files with 99 additions and 14 deletions
|
|
@ -1,5 +1,5 @@
|
|||
#![warn(indirect_structural_match)]
|
||||
use std::cell::Cell;
|
||||
|
||||
trait Foo<'a> {
|
||||
const C: Option<Cell<&'a u32>>;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue