diff options
| author | Janik Rabe <info@janikrabe.com> | 2021-07-01 22:15:13 +0100 |
|---|---|---|
| committer | Janik Rabe <info@janikrabe.com> | 2021-07-01 22:15:13 +0100 |
| commit | 2dd69aaafc64fe9dce74088b5371a6cfb032e01e (patch) | |
| tree | 90447f6f75aafbd36b09c7b01371788c83bb6fc4 /tests/mir-opt/lower_array_len.array_bound_mut.NormalizeArrayLen.panic-unwind.diff | |
| parent | 64de4979e8979836e7c029d69eb96e6f7da66185 (diff) | |
| download | rust-2dd69aaafc64fe9dce74088b5371a6cfb032e01e.tar.gz rust-2dd69aaafc64fe9dce74088b5371a6cfb032e01e.zip | |
Document iteration order of `retain` functions
For `HashSet` and `HashMap`, this simply copies the comment from `BinaryHeap::retain`. For `BTreeSet` and `BTreeMap`, this adds an additional guarantee that wasn't previously documented. I think that because these data structures are inherently ordered and other functions guarantee ordered iteration, it makes sense to provide this guarantee for `retain` as well.
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_bound_mut.NormalizeArrayLen.panic-unwind.diff')
0 files changed, 0 insertions, 0 deletions
