Repository navigation
Recover from common if let syntax mistakes/typos #103587
Copy link
Copy link
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsT-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
- addedA-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsT-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.
on Oct 26, 2022 @rustbot claim
Reacted by Rageking8Submit #103636 to resolve scenario
1and4, because I think we are sure about the intention of developer, and there is a clear way to fix it.For 2 and 3, there are several potential ways to fix the code, so give a specific suggestion may not correct.
- added a commit that references this issue
on Nov 8, 2022 - added 4 commits that reference this issue
on Nov 8, 2022 - added a commit that references this issue
on Nov 10, 2022 - added a commit that references this issue
on Jan 6, 2023
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsT-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.
Given the following code: link
The current output is:
Ideally the output should suggest how to fix the syntax mistakes/typos for each of the above examples.
1 -> Remove extra
=2 -> Swap
xandSome(_)3 -> 1 and 2
4 -> Add
let