| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2020-10-03 | Rollup merge of #75377 - canova:map_debug_impl, r=dtolnay | Jonas Schievink | -8/+4 | |
| Fix Debug implementations of some of the HashMap and BTreeMap iterator types HashMap's `ValuesMut`, BTreeMaps `ValuesMut`, IntoValues and `IntoKeys` structs were printing both keys and values on their Debug implementations. But they are iterators over either keys or values. Irrelevant values should not be visible. With this PR, they only show relevant fields. This fixes #75297. [Here's an example code.](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=0c79356ed860e347a0c1a205616f93b7) This prints this on nightly: ``` ValuesMut { inner: IterMut { range: [(1, "hello"), (2, "goodbye")], length: 2 } } IntoKeys { inner: [(1, "hello"), (2, "goodbye")] } IntoValues { inner: [(1, "hello"), (2, "goodbye")] } [(2, "goodbye"), (1, "hello")] ``` After the patch this example prints these instead: ``` ["hello", "goodbye"] ["hello", "goodbye"] [1, 2] ["hello", "goodbye"] ``` I didn't add test cases for them, since I couldn't see any tests for Debug implementations anywhere. But please let me know if I should add it to a specific place. r? @dtolnay | ||||
| 2020-10-02 | Link `new` method in `DefautHasher`s doc | Waffle | -4/+3 | |
| 2020-09-27 | Rollup merge of #76917 - GuillaumeGomez:map-missing-code-examples, r=Dylan-DPC | Jonas Schievink | -1/+106 | |
| Add missing code examples on HashMap types r? @Dylan-DPC | ||||
| 2020-09-21 | Add missing code examples on HashMap types | Guillaume Gomez | -1/+106 | |
| 2020-09-20 | Rollup merge of #76887 - GuillaumeGomez:hashset-iter-types-examples, r=Dylan-DPC | Ralf Jung | -0/+86 | |
| Add missing examples on HashSet iter types | ||||
| 2020-09-18 | Add missing examples on HashSet iter types | Guillaume Gomez | -0/+86 | |
| 2020-09-18 | Fixed intra-docs links in library/std/src/collections/hash/map.rs | Amjad Alsharafi | -6/+0 | |
| 2020-09-08 | Tests for HashMap/HashSet::drain_filter | Matt Brubeck | -0/+232 | |
| 2020-09-08 | Add HashMap::drain_filter and HashSet::drain_filter | Matt Brubeck | -0/+171 | |
| Implements #59618. | ||||
| 2020-09-08 | Implement HashSet in terms of hashbrown::HashSet | Matt Brubeck | -58/+53 | |
| 2020-09-08 | Update to hashbrown 0.9 | Matt Brubeck | -5/+5 | |
| 2020-09-06 | Auto merge of #76128 - poliorcetics:doc-use-arc-clone, r=KodrAus | bors | -2/+2 | |
| Use Arc::clone and Rc::clone in documentation This PR replaces uses of `x.clone()` by `Rc::clone(&x)` (or `Arc::clone(&x)`) to better match the documentation for those types. @rustbot modify labels: T-doc | ||||
| 2020-08-31 | std: move "mod tests/benches" to separate files | Lzu Tao | -1350/+1346 | |
| Also doing fmt inplace as requested. | ||||
| 2020-08-30 | Move to Arc::clone(&x) over x.clone() in library/std | Alexis Bourget | -2/+2 | |
| 2020-08-11 | Remove the unused bounds from Debug impl of HashMap::{IntoKeys,IntoValues} | Nazım Can Altınova | -2/+2 | |
| 2020-08-10 | Only print values in the Debug of HashMap::ValuesMut struct | Nazım Can Altınova | -6/+2 | |
| 2020-08-08 | Update the tracking issue number of map_into_keys_values | Nazım Can Altınova | -12/+12 | |
| 2020-08-07 | Only print the fields that are relevant to iterators for Debug of IntoKeys ↵ | Nazım Can Altınova | -2/+2 | |
| and IntoValues | ||||
| 2020-08-07 | Add unit tests for new `HashMap::into_{keys,values}` methods | Nazım Can Altınova | -0/+24 | |
| 2020-08-07 | Add `into_{keys,values}` methods for HashMap | Nazım Can Altınova | -0/+128 | |
| 2020-08-07 | Update hashbrown to 0.8.1 | Amanieu d'Antras | -4/+4 | |
| 2020-07-27 | mv std libs to library/ | mark | -0/+5538 | |
