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

Remove collection-specific with_capacity documentation from std::collections #59984

Merged
merged 1 commit into from
Apr 18, 2019

Conversation

gluyas
Copy link
Contributor

@gluyas gluyas commented Apr 15, 2019

Fixes #59931

The style of std::collections module doc is very much a beginner friendly guide, and documenting niche, collection-specific behaviour feels out of place, if not brittle.

The note about VecDeque is outdated (see issue), and while Vec probably won't change its guarantees any time soon, the users who are interested in its allocation properties will find that in its own documentation.

@rust-highfive
Copy link
Collaborator

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @rkruppe (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.

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 15, 2019
@hanna-kruppe
Copy link
Contributor

Thank you! It looks good to me and I'm going to approve this, but for visibility I'm going to mention @rust-lang/docs in case one of them has an opinion on dropping the mention of Vec::with_capacity's allocation guarantee from the top-level docs.

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Apr 17, 2019

📌 Commit 64dc041 has been approved by rkruppe

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 17, 2019
Centril added a commit to Centril/rust that referenced this pull request Apr 17, 2019
…c-fix, r=rkruppe

Remove collection-specific `with_capacity` documentation from `std::collections`

Fixes rust-lang#59931

The style of `std::collections` module doc is very much a beginner friendly guide, and documenting niche, collection-specific behaviour feels out of place, if not brittle.

The note about `VecDeque` is outdated (see issue), and while `Vec` probably won't change its guarantees any time soon, the users who are interested in its allocation properties will find that in its own documentation.
bors added a commit that referenced this pull request Apr 17, 2019
Rollup of 4 pull requests

Successful merges:

 - #59908 (Re-export core::str::{EscapeDebug, EscapeDefault, EscapeUnicode} in std)
 - #59984 (Remove collection-specific `with_capacity` documentation from `std::collections`)
 - #60036 (Remove nrc from toolstate pings)
 - #60037 (Resolve inconsistency in error messages between "parameter" and "variable".)

Failed merges:

r? @ghost
@bors bors merged commit 64dc041 into rust-lang:master Apr 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

VecDeque::with_capacity contradicts std::collections module documentation
4 participants