Skip to content
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

Merged
merged 4 commits into from
May 3, 2018
Merged

Conversation

Havvy
Copy link
Contributor

@Havvy Havvy commented Feb 19, 2018

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.

@@ -376,6 +373,84 @@ pub mod m3 {
}
```

#### Must Use Attribute
Copy link
Contributor

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"

# impl MustUse {
# fn new() -> MustUse { MustUse {} }
# }

Copy link
Contributor

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.

@Havvy
Copy link
Contributor Author

Havvy commented Apr 3, 2018

Updated for behaviour with trait objects.

Travis failure is in building mdbook?

@steveklabnik
Copy link
Member

Travis failure is in building mdbook?

That's... odd

@zackmdavis
Copy link
Member

@Havvy
Copy link
Contributor Author

Havvy commented May 3, 2018

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.

@zackmdavis
Copy link
Member

Travis will probably rebuild if you rebase on master?

@Havvy
Copy link
Contributor Author

Havvy commented May 3, 2018

You are correct, and it now shows as passing.

@alercah alercah merged commit b6d4ed7 into rust-lang:master May 3, 2018
@Havvy Havvy deleted the must-use branch May 3, 2018 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-stabilization Waiting for a stabilization PR to be merged in the main Rust repository
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants