diff options
| author | Jonas Schievink <jonasschievink@gmail.com> | 2020-11-15 13:39:54 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-15 13:39:54 +0100 |
| commit | aa685e2024874860c71887c4e18d916f1d989af8 (patch) | |
| tree | 5c25105cf1940785291890326be6a4b387e2a6cd /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 00396cb23a630be87f3914f5eaf0f49d086e92d8 (diff) | |
| parent | bf6902ca61ae6e91a3ab95bed88426926f245d02 (diff) | |
| download | rust-aa685e2024874860c71887c4e18d916f1d989af8.tar.gz rust-aa685e2024874860c71887c4e18d916f1d989af8.zip | |
Rollup merge of #79026 - mbrubeck:btree_retain, r=m-ou-se
Implement BTreeMap::retain and BTreeSet::retain Adds new methods `BTreeMap::retain` and `BTreeSet::retain`. These are implemented on top of `drain_filter` (#70530). The API of these methods is identical to `HashMap::retain` and `HashSet::retain`, which were implemented in #39560 and stabilized in #36648. The docs and tests are also copied from HashMap/HashSet. The new methods are unstable, behind the `btree_retain` feature gate, with tracking issue #79025. See also rust-lang/rfcs#1338.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
