-
-
Notifications
You must be signed in to change notification settings - Fork 17.3k
Diagnostic for .unwrap_or_default() suggests removing unrelated code #149487
Copy link
Copy link
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsD-imprecise-spansDiagnostics: Spans don't point to exactly the erroneous code.Diagnostics: Spans don't point to exactly the erroneous code.D-invalid-suggestionDiagnostics: A structured suggestion resulting in incorrect code.Diagnostics: A structured suggestion resulting in incorrect code.T-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.
Description
Activity
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsD-imprecise-spansDiagnostics: Spans don't point to exactly the erroneous code.Diagnostics: Spans don't point to exactly the erroneous code.D-invalid-suggestionDiagnostics: A structured suggestion resulting in incorrect code.Diagnostics: A structured suggestion resulting in incorrect code.T-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.
Code
Current output
nightly's even worse:
Desired output
Not this.
Rust Version
Anything else?
No response