-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
use structured suggestions for nonexistent fields #57047
Conversation
c48ddf7
to
f81aa03
Compare
☔ The latest upstream changes (presumably #57108) made this pull request unmergeable. Please resolve the merge conflicts. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You'll need to rebase to fix the merge conflict.
Left one wording nitpick, as we're trying to move away from the "did you mean" style.
f81aa03
to
dfc326d
Compare
@estebank Rebased, and removed the "did you mean" language from the affected diagnostics. |
@@ -2,7 +2,7 @@ error[E0560]: struct `NonCopyable` has no field named `p` | |||
--> $DIR/issue-4736.rs:4:26 | |||
| | |||
LL | let z = NonCopyable{ p: () }; //~ ERROR struct `NonCopyable` has no field named `p` | |||
| ^ field does not exist - did you mean `0`? | |||
| ^ help: a field with a similar name exists: `0` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not relevant to this PR It'd be nice to suggest the appropriate syntax here:
error[E0560]: struct `NonCopyable` has no field named `p`
--> $DIR/issue-4736.rs:4:26
|
LL | let z = NonCopyable{ p: () }; //~ ERROR struct `NonCopyable` has no field named `p`
| -------------^-----
| | |
| | field does not exist
| help: `NonCopyable` is a tuple struct, use the appropriate syntax: `NonCopyable(())`
@bors r+ |
📌 Commit dfc326d has been approved by |
use structured suggestions for nonexistent fields r? @estebank
☀️ Test successful - status-appveyor, status-travis |
r? @estebank