-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recover from common if let
syntax mistakes/typos
#103587
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
Rageking8
added
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
labels
Oct 26, 2022
@rustbot claim |
Submit #103636 to resolve scenario For 2 and 3, there are several potential ways to fix the code, so give a specific suggestion may not correct. |
Manishearth
added a commit
to Manishearth/rust
that referenced
this issue
Nov 8, 2022
…if-let, r=jackh276,davidtwco Recover from common if let syntax mistakes/typos Fixes rust-lang#103587
Manishearth
added a commit
to Manishearth/rust
that referenced
this issue
Nov 8, 2022
…if-let, r=jackh276,davidtwco Recover from common if let syntax mistakes/typos Fixes rust-lang#103587
Manishearth
added a commit
to Manishearth/rust
that referenced
this issue
Nov 8, 2022
…if-let, r=jackh276,davidtwco Recover from common if let syntax mistakes/typos Fixes rust-lang#103587
Manishearth
added a commit
to Manishearth/rust
that referenced
this issue
Nov 10, 2022
…if-let, r=jackh276,davidtwco Recover from common if let syntax mistakes/typos Fixes rust-lang#103587
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Nov 10, 2022
…-let, r=jackh276,davidtwco Recover from common if let syntax mistakes/typos Fixes rust-lang#103587
Aaron1011
pushed a commit
to Aaron1011/rust
that referenced
this issue
Jan 6, 2023
…-let, r=jackh276,davidtwco Recover from common if let syntax mistakes/typos Fixes rust-lang#103587
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
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
x
andSome(_)
3 -> 1 and 2
4 -> Add
let
The text was updated successfully, but these errors were encountered: