about summary refs log tree commit diff
path: root/src/liballoc/tests/lib.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-08-15 16:21:28 +0000
committerbors <bors@rust-lang.org>2017-08-15 16:21:28 +0000
commit82be83cf744611a016fb09ae1afbffc04b3ed2e1 (patch)
treee7054196a3c1077869c05473d3ef605fb7a47b6a /src/liballoc/tests/lib.rs
parent1b08e0f231cd30719c25a5992f1d9bb27ea02b61 (diff)
parent618ac89d256adca97518742db2ad2759c4f5fc72 (diff)
downloadrust-82be83cf744611a016fb09ae1afbffc04b3ed2e1.tar.gz
rust-82be83cf744611a016fb09ae1afbffc04b3ed2e1.zip
Auto merge of #43500 - murarth:string-retain, r=alexcrichton
Add method `String::retain`

Behaves like `Vec::retain`, accepting a predicate `FnMut(char) -> bool`
and reducing the string to only characters for which the predicate
returns `true`.
Diffstat (limited to 'src/liballoc/tests/lib.rs')
-rw-r--r--src/liballoc/tests/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/liballoc/tests/lib.rs b/src/liballoc/tests/lib.rs
index 27b23d14059..34b0a137b10 100644
--- a/src/liballoc/tests/lib.rs
+++ b/src/liballoc/tests/lib.rs
@@ -25,6 +25,7 @@
 #![feature(slice_rotate)]
 #![feature(splice)]
 #![feature(str_escape)]
+#![feature(string_retain)]
 #![feature(test)]
 #![feature(unboxed_closures)]
 #![feature(unicode)]