-
Notifications
You must be signed in to change notification settings - Fork 13.4k
add explanation for E0429 (self
use declaration must use brace syntax)
#33955
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
Conversation
This is an item under rust-lang#32777.
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @GuillaumeGomez (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
@@ -1029,6 +1029,32 @@ struct Bar2; // ok! | |||
``` | |||
"##, | |||
|
|||
E0429: r##" | |||
To import a namespace itself in addition to some of its members, the `self` |
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.
This paragraph should just be the description of the error, not how to fix it. Put this paragraph just after the erroneous code example and replace it here by the error description (I think I repeated myself a lot in here haha).
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.
Right. Better?
I liked the original explanation, it was more complete than the actual one. Could you re-use it or expand the current one please? |
Unfortunately, I'm not sure I understand what you mean; both my initial submission and the revision would seem to cover the same information:
What made the first one (a2b7dfa) feel more complete to you? In that, initial, draft, my outline was "start with a context-setting 'topic sentence' explaining what this brace-syntax feature is about, then explain the error, then point out how to just use the namespace itself, then have an example of the typical |
Hum... I see your point. Then I have nothing to add. Thanks! @bors: r+ rollup |
📌 Commit 06ebda8 has been approved by |
…meGomez add explanation for E0429 (`self` use declaration must use brace syntax) This is an item under rust-lang#32777. r? @GuillaumeGomez
This is an item under #32777.
r? @GuillaumeGomez