Skip to content

Rollup of 6 pull requests #43603

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

Merged
merged 23 commits into from
Aug 2, 2017
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
81eea9e
Thread through the original error when opening archives
alexcrichton Jul 21, 2017
236b748
Add simple docs example for struct Cell
Jul 23, 2017
bb65d32
add prose
Jul 24, 2017
3c53595
review fixes
Jul 24, 2017
8286075
ci fix?
Jul 24, 2017
beb072a
empty lines
Jul 24, 2017
d429a4e
s/immutable/my_struct
Jul 24, 2017
dd371a2
rustc: Inline bitwise modification operators
alexcrichton Aug 1, 2017
bdb53e5
Fix the Solaris pthread_t raw type in std to match what's in libc
Aug 1, 2017
1b831cf
Derive `Hash` on `AssociatedKind`.
ibabushkin Aug 1, 2017
8810627
Add doc example for HashSet::hasher.
frewsxcv Aug 1, 2017
9e19260
Show that the capacity changed in HashSet::reserve doc example.
frewsxcv Aug 1, 2017
070eb3c
Indicate HashSet is code-like in docs.
frewsxcv Aug 1, 2017
9e2b0c6
Remove unnecessary 'mut' bindings.
frewsxcv Aug 1, 2017
1599fad
Show the capacity in HashSet::with_capacity doc example.
frewsxcv Aug 1, 2017
34c1bfb
Remove unnecessary clones in doc examples.
frewsxcv Aug 1, 2017
d9df296
Add doc example for HashSet::drain.
frewsxcv Aug 1, 2017
ab3fb95
Rollup merge of #43389 - alexcrichton:thread-error, r=michaelwoerister
frewsxcv Aug 2, 2017
2d9893f
Rollup merge of #43423 - xliiv:cell-example, r=steveklabnik
frewsxcv Aug 2, 2017
c96ce40
Rollup merge of #43581 - alexcrichton:inline-more, r=michaelwoerister
frewsxcv Aug 2, 2017
08c0bbd
Rollup merge of #43585 - frewsxcv:frewsxcv-hashset-docs, r=steveklabn…
frewsxcv Aug 2, 2017
1c91c78
Rollup merge of #43597 - dhduvall:master, r=alexcrichton
frewsxcv Aug 2, 2017
368f1a8
Rollup merge of #43598 - ibabushkin:master, r=eddyb
frewsxcv Aug 2, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Show the capacity in HashSet::with_capacity doc example.
  • Loading branch information
frewsxcv committed Aug 1, 2017
commit 1599fad5b485cbfbed698df3590665f064999948
1 change: 1 addition & 0 deletions src/libstd/collections/hash/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ impl<T: Hash + Eq> HashSet<T, RandomState> {
/// ```
/// use std::collections::HashSet;
/// let set: HashSet<i32> = HashSet::with_capacity(10);
/// assert!(set.capacity() >= 10);
/// ```
#[inline]
#[stable(feature = "rust1", since = "1.0.0")]
Expand Down