-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
let-chain with missing let in the middle causes multiple errors #117977
Copy link
Copy link
Open
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsD-papercutDiagnostics: An error or lint that needs small tweaks.Diagnostics: An error or lint that needs small tweaks.D-verboseDiagnostics: Too much output caused by a single piece of incorrect code.Diagnostics: Too much output caused by a single piece of incorrect code.F-let_chains`#![feature(let_chains)]``#![feature(let_chains)]`P-lowLow priorityLow priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsD-papercutDiagnostics: An error or lint that needs small tweaks.Diagnostics: An error or lint that needs small tweaks.D-verboseDiagnostics: Too much output caused by a single piece of incorrect code.Diagnostics: Too much output caused by a single piece of incorrect code.F-let_chains`#![feature(let_chains)]``#![feature(let_chains)]`P-lowLow priorityLow priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Edit: only remaining case is eliminating the first error in
Code
Current output
Update:
Previously:
Desired output
Edit: we now provide appropriate suggestions in the first diagnostic, but we should notice that this should have been a
letchain and silence the E0308 errors.Rationale and extra context
No response
Other cases
No response
Anything else?
No response