-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
With over-parenthesized method call, E0615 suggests adding parentheses in the wrong place #88803
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
jruderman
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
Sep 10, 2021
workingjubilee
added a commit
to workingjubilee/rustc
that referenced
this issue
Sep 14, 2021
…r=estebank feat(rustc_typeck): suggest removing bad parens in `(recv.method)()` Fixes rust-lang#88803
workingjubilee
added a commit
to workingjubilee/rustc
that referenced
this issue
Sep 14, 2021
…r=estebank feat(rustc_typeck): suggest removing bad parens in `(recv.method)()` Fixes rust-lang#88803
Manishearth
added a commit
to Manishearth/rust
that referenced
this issue
Sep 14, 2021
…r=estebank feat(rustc_typeck): suggest removing bad parens in `(recv.method)()` Fixes rust-lang#88803
Manishearth
added a commit
to Manishearth/rust
that referenced
this issue
Sep 14, 2021
…r=estebank feat(rustc_typeck): suggest removing bad parens in `(recv.method)()` Fixes rust-lang#88803
Manishearth
added a commit
to Manishearth/rust
that referenced
this issue
Sep 14, 2021
…r=estebank feat(rustc_typeck): suggest removing bad parens in `(recv.method)()` Fixes rust-lang#88803
Manishearth
added a commit
to Manishearth/rust
that referenced
this issue
Sep 14, 2021
…r=estebank feat(rustc_typeck): suggest removing bad parens in `(recv.method)()` Fixes rust-lang#88803
Manishearth
added a commit
to Manishearth/rust
that referenced
this issue
Sep 15, 2021
…r=estebank feat(rustc_typeck): suggest removing bad parens in `(recv.method)()` Fixes rust-lang#88803
Manishearth
added a commit
to Manishearth/rust
that referenced
this issue
Sep 15, 2021
…r=estebank feat(rustc_typeck): suggest removing bad parens in `(recv.method)()` Fixes rust-lang#88803
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:
The current output is:
Ideally the output should look like:
But at least adding parentheses right next to the method name would be an improvement:
The text was updated successfully, but these errors were encountered: