-
Notifications
You must be signed in to change notification settings - Fork 504
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
Document RFC 1940 (must_use on fns) #247
Conversation
src/attributes.md
Outdated
@@ -376,6 +373,84 @@ pub mod m3 { | |||
} | |||
``` | |||
|
|||
#### Must Use Attribute |
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.
I'd change this to "must_use Attribute"
src/attributes.md
Outdated
# impl MustUse { | ||
# fn new() -> MustUse { MustUse {} } | ||
# } | ||
|
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.
Add a # to the start of one of these blank lines to avoid two in the rendered text.
Updated for behaviour with trait objects. Travis failure is in building mdbook? |
That's... odd |
I added a commit that just added a space and then had Travis test it. It passed. I then deleted that commit and it went back to the previous status of not passing because of whatever mysterious error we had last time. So if anybody wants to merge this, it's ready for merging. |
Travis will probably rebuild if you rebase on master? |
You are correct, and it now shows as passing. |
This is the reference side of documenting this attribute — both the updates for the RFC and the original functionality. I do not think that this PR is sufficient documentation for stabilizing the feature, as I think the API guidelines should also be updated.