diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2017-09-16 09:17:02 -0500 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2017-09-16 17:09:41 -0700 |
| commit | 0df4e926628291805e1aea10ae3ce565bb034a53 (patch) | |
| tree | 789c5c2063ba0120890bbe3fbd82f2a4f95c8049 /src/test/incremental/thinlto | |
| parent | a47ca2291d593710a5f43cea9ddfaf1434decbb9 (diff) | |
| parent | f7e974e4322b53cdadddf2ca8c72eaf419d406f2 (diff) | |
| download | rust-0df4e926628291805e1aea10ae3ce565bb034a53.tar.gz rust-0df4e926628291805e1aea10ae3ce565bb034a53.zip | |
Rollup merge of #44609 - jonhoo:hash-alloc, r=steveklabnik
Mention that HashMap::new and HashSet::new do not allocate The docs for `HashMap::with_capacity` and `HashSet::with_capacity` already say that > If `capacity` is 0, the hash map/set will not allocate. However, the docs for `::new` do not say that the initial capacity is 0, and thus promise that a call to `::new` alone does not allocate. This PR fixes that.
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions
