about summary refs log tree commit diff
path: root/src/libstd_unicode/lib.rs
diff options
context:
space:
mode:
authorUlrik Sverdrup <bluss@users.noreply.github.com>2017-04-30 21:07:39 +0200
committerUlrik Sverdrup <bluss@users.noreply.github.com>2017-04-30 21:20:20 +0200
commitf41ecef6d52200743b3672346a59fc1e2068e9e8 (patch)
tree855808fb4a32b43b4d207f3112c7c91af4cf6aa2 /src/libstd_unicode/lib.rs
parent06fb4d25642a3f223db1441972dd5962085cfba1 (diff)
std_unicode: impl Clone for .split_whitespace()
Use custom closure structs for the predicates so that the iterator's
clone can simply be derived. This should also reduce virtual call
overhead by not using function pointers.
Diffstat (limited to 'src/libstd_unicode/lib.rs')
-rw-r--r--src/libstd_unicode/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstd_unicode/lib.rs b/src/libstd_unicode/lib.rs
index 7e5ab1a54ab..d63878a7a7c 100644
--- a/src/libstd_unicode/lib.rs
+++ b/src/libstd_unicode/lib.rs
@@ -36,9 +36,11 @@
 #![feature(core_char_ext)]
 #![feature(decode_utf8)]
 #![feature(fused)]
+#![feature(fn_traits)]
 #![feature(lang_items)]
 #![feature(staged_api)]
 #![feature(try_from)]
+#![feature(unboxed_closures)]
 
 mod tables;
 mod u_str;