| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2025-08-26 | remove deprecated Error::description in impls | Marijn Schouten | -6/+1 | |
| 2025-08-09 | `HashMap`: also add "Usage with custom key types" heading | Ada Alakbarova | -0/+2 | |
| 2025-08-09 | `{BTree,Hash}Map`: add "`Entry` API" section heading | Ada Alakbarova | -0/+2 | |
| 2025-05-17 | Docs(lib/coll/hm): Add kv pair to `extract_if`'s first sentence | Paul Mabileau | -1/+1 | |
| Make it consistent in this regard with `BTreeMap`'s. Signed-off-by: Paul Mabileau <paul.mabileau@harfanglab.fr> | ||||
| 2025-05-17 | Docs(lib/extract_if): Unify paragraph about elements mutation | Paul Mabileau | -2/+2 | |
| Take the one from `BTreeMap` that seems the best-worded and most precise among the available variations. Signed-off-by: Paul Mabileau <paul.mabileau@harfanglab.fr> | ||||
| 2025-05-17 | Docs(lib/extract_if): Unify paragraph about closure actions | Paul Mabileau | -3/+3 | |
| Also fixes `HashSet`'s that incorrectly designated itself as a `list`. Signed-off-by: Paul Mabileau <paul.mabileau@harfanglab.fr> | ||||
| 2025-05-12 | update version placeholders | Pietro Albini | -5/+5 | |
| 2025-05-05 | Consistent trait bounds for ExtractIf Debug impls | David Tolnay | -11/+9 | |
| 2025-04-24 | Rollup merge of #139307 - xizheyin:issue-139296, r=joboet | Matthias Krüger | -0/+3 | |
| std: Add performance warnings to HashMap::get_disjoint_mut Closes #139296 The `get_disjoint_mut` in `HashMap` also performs a complexity O(n^2) check. So we need to be reminded of that as well. https://github.com/rust-lang/hashbrown/blob/b5b0655a37e156f9798ac8dd7e970d4adba9bf90/src/raw/mod.rs#L1216-L1220 | ||||
| 2025-04-20 | Use `currently` for futher improvement | xizheyin | -1/+1 | |
| Co-authored-by: Jonas Böttiger <jonasboettiger@icloud.com> | ||||
| 2025-04-09 | replace version placeholder | Boxy | -5/+5 | |
| 2025-04-05 | std: Add performance warnings to HashMap::get_disjoint_mut | xizheyin | -0/+3 | |
| Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn> | ||||
| 2025-03-14 | Rollup merge of #137870 - karolzwolak:lazylock-const-hashmaps-137566, r=cuviper | Jacob Pratt | -7/+19 | |
| Improve HashMap docs for const and static initializers Closes #137566. I clarified the HashMap usage in const and static initializers. I also added examples of how to construct such HashMaps wrapped in LazyLock. | ||||
| 2025-03-12 | Remove `feature = "hash_raw_entry"` | Josh Stone | -471/+0 | |
| 2025-03-01 | docs(std): mention LazyLock in const/static HashMap construction | Karol Zwolak | -7/+19 | |
| 2025-02-24 | Rollup merge of #134655 - GrigorenkoPV:hash_extract_if, r=cuviper | Trevor Gross | -8/+5 | |
| Stabilize `hash_extract_if` FCP complete: https://github.com/rust-lang/rust/issues/59618#issuecomment-2674880530 Tracking issue: #59618 Closes #59618 | ||||
| 2025-02-18 | update version placeholders | Josh Stone | -2/+2 | |
| (cherry picked from commit e4840ce59bdddb19394df008c5c26d9c493725f8) | ||||
| 2025-02-07 | Clean up 'HashMap' and 'HashSet' docs; | Gabriel Bjørnager Jensen | -6/+6 | |
| 2025-01-27 | Stabilize `HashMap::get_many_mut` as `HashMap::get_disjoint_mut` | Urgau | -15/+17 | |
| as well as `HashMap::get_many_unchecked_mut` to `HashMap::get_disjoint_unchecked_mut`. | ||||
| 2025-01-08 | fmt | Pietro Albini | -4/+1 | |
| 2025-01-08 | update version placeholders | Pietro Albini | -1/+1 | |
| 2024-12-22 | Specify only that duplicates are discarded, not the order. | Kevin Reid | -3/+3 | |
| 2024-12-22 | Stabilize `hash_extract_if` | Pavel Grigorenko | -8/+5 | |
| 2024-12-21 | Document collection `From` and `FromIterator` impls that drop duplicate keys. | Kevin Reid | -0/+9 | |
| This behavior is worth documenting because there are other plausible alternatives, such as panicking when a duplicate is encountered, and it reminds the programmer to consider whether they should, for example, coalesce duplicate keys first. | ||||
| 2024-12-03 | ./x miri: fix sysroot build | Ralf Jung | -2/+2 | |
| 2024-12-02 | stabilize const_collections_with_hasher and build_hasher_default_const_new | Ralf Jung | -1/+23 | |
| 2024-11-28 | Also use zero when referencing to capacity or length | timvisee | -2/+2 | |
| 2024-11-18 | Improve `{BTreeMap,HashMap}::get_key_value` docs. | Nicholas Nethercote | -4/+36 | |
| They are unusual methods. The docs don't really describe the cases when they might be useful (as opposed to just `get`), and the examples don't demonstrate the interesting cases at all. This commit improves the docs and the examples. | ||||
| 2024-10-15 | replace placeholder version | Josh Stone | -10/+10 | |
| (cherry picked from commit 567fd9610cbfd220844443487059335d7e1ff021) | ||||
| 2024-10-02 | impl Default for Hash{Map,Set} iterators that don't already have it | ltdk | -0/+64 | |
| 2024-10-02 | Update hashbrown to 0.15 and adjust some methods | Urgau | -82/+55 | |
| as well as removing some from std as they no longer exists in Hashbrown it-self. | ||||
| 2024-09-19 | [Clippy] Swap `iter_over_hash_type` to use diagnostic items instead of paths | GnomedDev | -0/+6 | |
| 2024-09-19 | [Clippy] Swap `map_entry` to use diagnostic items instead of paths | GnomedDev | -0/+2 | |
| 2024-09-13 | Stabilize entry_insert | Félix Saparelli | -4/+2 | |
| 2024-07-29 | Reformat `use` declarations. | Nicholas Nethercote | -4/+2 | |
| The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options. | ||||
| 2024-07-14 | std: Unsafe-wrap HashMap::get_many_unchecked_mut | Jubilee Young | -3/+1 | |
| 2024-07-14 | std: deny(unsafe_op_in_unsafe_fn) but allow sites | Jubilee Young | -0/+2 | |
| This provides a list of locations to hunt down issues in. | ||||
| 2024-06-03 | Fix typo in the docs of `HashMap::raw_entry_mut` | Tim Kurdov | -1/+1 | |
| 2024-04-17 | Rollup merge of #122201 - coolreader18:doc-clone_from, r=dtolnay | Matthias Krüger | -2/+2 | |
| Document overrides of `clone_from()` in core/std As mentioned in https://github.com/rust-lang/rust/pull/96979#discussion_r1379502413 Specifically, when an override doesn't just forward to an inner type, document the behavior and that it's preferred over simply assigning a clone of source. Also, change instances where the second parameter is "other" to "source". I reused some of the wording over and over for similar impls, but I'm not sure that the wording is actually *good*. Would appreciate feedback about that. Also, now some of these seem to provide pretty specific guarantees about behavior (e.g. will reuse the exact same allocation iff the len is the same), but I was basing it off of the docs for [`Box::clone_from`](https://doc.rust-lang.org/1.75.0/std/boxed/struct.Box.html#method.clone_from-1) - I'm not sure if providing those strong guarantees is actually good or not. | ||||
| 2024-03-19 | Add "put" as a confusable for insert on hash map/set | Sky | -1/+1 | |
| 2024-03-08 | Document overrides of `clone_from()` | Noa | -2/+2 | |
| Specifically, when an override doesn't just forward to an inner type, document the behavior and that it's preferred over simply assigning a clone of source. Also, change instances where the second parameter is "other" to "source". | ||||
| 2024-02-22 | Add `rustc_confusables` annotations to some stdlib APIs | Esteban Küber | -0/+2 | |
| Help with common API confusion, like asking for `push` when the data structure really has `append`. ``` error[E0599]: no method named `size` found for struct `Vec<{integer}>` in the current scope --> $DIR/rustc_confusables_std_cases.rs:17:7 | LL | x.size(); | ^^^^ | help: you might have meant to use `len` | LL | x.len(); | ~~~ help: there is a method with a similar name | LL | x.resize(); | ~~~~~~ ``` #59450 | ||||
| 2024-01-30 | add missing potential_query_instability for keys and values in hashmap | yukang | -0/+3 | |
| 2023-12-04 | Specialize `count` too | Benoît du Garreau | -0/+32 | |
| 2023-12-04 | `HashMap`/`HashSet`: forward `fold` implementations of iterators | Benoît du Garreau | -0/+72 | |
| 2023-11-02 | Add insta-stable std::hash::{DefaultHasher, RandomState} exports | ltdk | -3/+3 | |
| 2023-11-02 | Move RandomState and DefaultHasher into std::hash, but don't export for now | ltdk | -150/+1 | |
| 2023-10-20 | s/generator/coroutine/ | Oli Scherer | -1/+1 | |
| 2023-08-07 | Increase clarity about Hash - Eq consistency in HashMap and HashSet docs | Easyoakland | -2/+4 | |
| 2023-06-29 | make HashMap::or_insert_with example more simple | Tshepang Mbambo | -4/+4 | |
