407cb24142
Use Expr instead. Use `ExprKind::Let` to represent if let guards.
13 lines
469 B
Plaintext
13 lines
469 B
Plaintext
warning: irrefutable `if let` guard pattern
|
|
--> $DIR/issue-88118-2.rs:10:25
|
|
|
|
|
LL | Registry if let _ = registry.try_find_description() => { }
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: this pattern will always match, so the guard is useless
|
|
= help: consider removing the guard and adding a `let` inside the match arm
|
|
= note: `#[warn(irrefutable_let_patterns)]` on by default
|
|
|
|
warning: 1 warning emitted
|
|
|