irrefutable_let_patterns
should not lint at the start of an else if
let-chain
#128661
Labels
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-bug
Category: This is a bug.
F-let_chains
`#![feature(let_chains)]`
L-irrefutable_let_patterns
Lint: irrefutable_let_patterns
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
T-lang
Relevant to the language team, which will review and decide on the PR/issue.
The following triggers
irrefutable_let_patterns
:Though
let foo = expensive()
is irrefutable, it would add an extra layer of nesting to move it into a regularlet
statement. e.g.The text was updated successfully, but these errors were encountered: