Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
5907a8c
Fix incorrect feature flags
jhpratt Nov 14, 2021
64cca29
Fix method name reference in stream documentation
jplatte Nov 21, 2021
15a4ed6
adjust const_eval_select documentation
RalfJung Nov 28, 2021
85558ad
adjust some const_eval_select safety comments
RalfJung Nov 28, 2021
80a308d
Use `HashMap::from()` instead of using `HashMap::new()` with `HashMap…
JosephTLyons Dec 2, 2021
440cffd
Use `BTreeMap::from()` instead of using `BTreeMap::new()` with `BTree…
JosephTLyons Dec 2, 2021
72a6974
Make `HashMap`s mutable again
JosephTLyons Dec 3, 2021
d5f6b9c
code-cov: generate dead functions with private/default linkage
wesleywiser Dec 2, 2021
8bfc76d
Fix Vec::extend_from_slice docs
rukai Dec 4, 2021
41f7692
Document all public items in `rustc_incremental`
pierwill Oct 29, 2021
d9e4502
fix documentation for `core::ready::Ready`
ibraheemdev Dec 8, 2021
15de4cb
Remove redundant [..]s
est31 Dec 3, 2021
99bd24e
Fix span calculation on secondary_label as well
compiler-errors Dec 5, 2021
71c1d56
Rollup merge of #90407 - pierwill:edit-rustc-incremental-docs, r=cjgi…
matthiaskrgr Dec 10, 2021
616f9ef
Rollup merge of #90897 - jhpratt:fix-incorrect-feature-flags, r=dtolnay
matthiaskrgr Dec 10, 2021
60aa03a
Rollup merge of #91105 - jplatte:stream-docs, r=dtolnay
matthiaskrgr Dec 10, 2021
d317da4
Rollup merge of #91325 - RalfJung:const_eval_select, r=dtolnay
matthiaskrgr Dec 10, 2021
b7b4d77
Rollup merge of #91470 - wesleywiser:code_coverage_link_error, r=tmandry
matthiaskrgr Dec 10, 2021
5510803
Rollup merge of #91482 - JosephTLyons:update-HashMap-and-BTreeMap-doc…
matthiaskrgr Dec 10, 2021
ca352c4
Rollup merge of #91524 - rukai:fix_extend_from_slice_docs, r=dtolnay
matthiaskrgr Dec 10, 2021
6cfe9af
Rollup merge of #91575 - compiler-errors:issue-91556, r=cjgillot
matthiaskrgr Dec 10, 2021
4098859
Rollup merge of #91625 - est31:remove_indexes, r=oli-obk
matthiaskrgr Dec 10, 2021
1fca934
Rollup merge of #91646 - ibraheemdev:patch-9, r=dtolnay
matthiaskrgr Dec 10, 2021
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
Make HashMaps mutable again
  • Loading branch information
JosephTLyons committed Dec 3, 2021
commit 72a6974e455793f9dcc370cc8bdf9c055b843d39
12 changes: 6 additions & 6 deletions library/std/src/collections/hash/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ impl<K, V, S> HashMap<K, V, S> {
/// ```
/// use std::collections::HashMap;
///
/// let map = HashMap::from([
/// let mut map = HashMap::from([
/// ("a", 1),
/// ("b", 2),
/// ("c", 3),
Expand Down Expand Up @@ -431,7 +431,7 @@ impl<K, V, S> HashMap<K, V, S> {
/// ```
/// use std::collections::HashMap;
///
/// let map = HashMap::from([
/// let mut map = HashMap::from([
/// ("a", 1),
/// ("b", 2),
/// ("c", 3),
Expand Down Expand Up @@ -1246,7 +1246,7 @@ impl<K: Debug, V: Debug> fmt::Debug for Iter<'_, K, V> {
/// ```
/// use std::collections::HashMap;
///
/// let map = HashMap::from([
/// let mut map = HashMap::from([
/// ("a", 1),
/// ]);
/// let iter = map.iter_mut();
Expand Down Expand Up @@ -1383,7 +1383,7 @@ impl<K, V: Debug> fmt::Debug for Values<'_, K, V> {
/// ```
/// use std::collections::HashMap;
///
/// let map = HashMap::from([
/// let mut map = HashMap::from([
/// ("a", 1),
/// ]);
/// let iter = map.drain();
Expand Down Expand Up @@ -1414,7 +1414,7 @@ impl<'a, K, V> Drain<'a, K, V> {
///
/// use std::collections::HashMap;
///
/// let map = HashMap::from([
/// let mut map = HashMap::from([
/// ("a", 1),
/// ]);
/// let iter = map.drain_filter(|_k, v| *v % 2 == 0);
Expand All @@ -1439,7 +1439,7 @@ where
/// ```
/// use std::collections::HashMap;
///
/// let map = HashMap::from([
/// let mut map = HashMap::from([
/// ("a", 1),
/// ]);
/// let iter_values = map.values_mut();
Expand Down