-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Nonsensical extra diagnostics for E0425 in static methods #60057
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
jonas-schievink
added
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
labels
Apr 17, 2019
estebank
added
the
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
label
Apr 18, 2019
The original logic was to
Unfortunately, the messages were reworded and repositioned by later changes. |
Centril
added a commit
to Centril/rust
that referenced
this issue
Apr 18, 2019
Change suggestion of field when not in self context Fix rust-lang#60057.
Centril
added a commit
to Centril/rust
that referenced
this issue
Apr 19, 2019
Change suggestion of field when not in self context Fix rust-lang#60057.
Centril
added a commit
to Centril/rust
that referenced
this issue
Apr 19, 2019
Change suggestion of field when not in self context Fix rust-lang#60057.
Centril
added a commit
to Centril/rust
that referenced
this issue
Apr 19, 2019
Change suggestion of field when not in self context Fix rust-lang#60057.
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
A-suggestion-diagnostics
Area: Suggestions generated by the compiler applied by `cargo fix`
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The following code (playground):
produces the following error:
First,
help
is wrong, because this is a static method and self is not available in scope. Second it is not clear why a line abovehelp
is talking aboutself
at all.The text was updated successfully, but these errors were encountered: