about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorJonas Schievink <jonasschievink@gmail.com>2020-11-15 13:39:54 +0100
committerGitHub <noreply@github.com>2020-11-15 13:39:54 +0100
commitaa685e2024874860c71887c4e18d916f1d989af8 (patch)
tree5c25105cf1940785291890326be6a4b387e2a6cd /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent00396cb23a630be87f3914f5eaf0f49d086e92d8 (diff)
parentbf6902ca61ae6e91a3ab95bed88426926f245d02 (diff)
downloadrust-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