about summary refs log tree commit diff
path: root/src/libcollections/lib.rs
diff options
context:
space:
mode:
authorUlrik Sverdrup <root@localhost>2015-04-27 19:37:13 +0200
committerUlrik Sverdrup <root@localhost>2015-04-28 11:38:33 +0200
commitb475fc7d6aa1cafa91790c273908fddfb669a82e (patch)
treea59c68bdd6ff050e718b19cf3c081e832af4fff7 /src/libcollections/lib.rs
parent9993a43e5c1b42ed42ae46749b1cdd8874db602f (diff)
downloadrust-b475fc7d6aa1cafa91790c273908fddfb669a82e.tar.gz
rust-b475fc7d6aa1cafa91790c273908fddfb669a82e.zip
collections: Implement vec::drain(range) according to RFC 574
Old `.drain()` on vec is performed using `.drain(..)` now.

`.drain(range)` is unstable and under feature(collections_drain)

[breaking-change]
Diffstat (limited to 'src/libcollections/lib.rs')
-rw-r--r--src/libcollections/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libcollections/lib.rs b/src/libcollections/lib.rs
index 992424858e1..ae2ad7751aa 100644
--- a/src/libcollections/lib.rs
+++ b/src/libcollections/lib.rs
@@ -42,7 +42,8 @@
 #![feature(slice_patterns)]
 #![feature(debug_builders)]
 #![feature(utf8_error)]
-#![cfg_attr(test, feature(rand, rustc_private, test, hash, collections))]
+#![cfg_attr(test, feature(rand, rustc_private, test, hash, collections,
+                          collections_drain, collections_range))]
 #![cfg_attr(test, allow(deprecated))] // rand
 
 #![feature(no_std)]