about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-12-12 10:44:32 +0000
committerbors <bors@rust-lang.org>2018-12-12 10:44:32 +0000
commitae3833db3b0acd5d7f06cad333e61e21e39be295 (patch)
treee260a37e715dfc035ddf4e0b85bc7262993fff71 /src/rustllvm/RustWrapper.cpp
parenta64cdec1b48b0d042e5f0e38634a7c438c104b85 (diff)
parent5b6401f09db502b9e596bf7d756ccc97029dfe31 (diff)
downloadrust-ae3833db3b0acd5d7f06cad333e61e21e39be295.tar.gz
rust-ae3833db3b0acd5d7f06cad333e61e21e39be295.zip
Auto merge of #56039 - ljedrz:sorted_map_upgrades, r=matthewjasper
SortedMap upgrades

- change the impl `From<Iterator<I>>` to `FromIterator<I>`
- make the impls of `Index` and `get` match the ones from `BTreeMap`
- add `is_empty` and `contains_key`
- readability/whitespace fixes
- add a proper `Iterator` implementation
- `impl IntoIterator for &SortedMap`

These changes make `SortedMap` almost a drop-in replacement for `BTreeMap`, at least to the point it is used by `rustc`; what is left is `Entry` API that I'd like to follow this PR with, and possibly implementing `ParallelIterator`.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions