about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorUlrik Sverdrup <bluss@users.noreply.github.com>2016-10-17 21:26:29 +0200
committerUlrik Sverdrup <bluss@users.noreply.github.com>2016-10-17 21:26:29 +0200
commit0a0efcbebf385d70404425ac9be0d52e933640c5 (patch)
treed7f543ff43cd71f9d7141b6a6514668a3fc1379b /src/libstd
parentda7f8c540b47c5bb063356bf5ad05a6a49ed0ff1 (diff)
downloadrust-0a0efcbebf385d70404425ac9be0d52e933640c5.tar.gz
rust-0a0efcbebf385d70404425ac9be0d52e933640c5.zip
std::collections: Reexport libcollections's range module
This is overdue, even if range and RangeArgument is still unstable.
The stability attributes are the same ones as the other unstable item
(Bound) here, they don't seem to matter.
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/collections/mod.rs3
-rw-r--r--src/libstd/lib.rs1
2 files changed, 4 insertions, 0 deletions
diff --git a/src/libstd/collections/mod.rs b/src/libstd/collections/mod.rs
index 9b13d542300..504b3a76bd2 100644
--- a/src/libstd/collections/mod.rs
+++ b/src/libstd/collections/mod.rs
@@ -425,6 +425,9 @@ pub use self::hash_map::HashMap;
 #[stable(feature = "rust1", since = "1.0.0")]
 pub use self::hash_set::HashSet;
 
+#[stable(feature = "rust1", since = "1.0.0")]
+pub use core_collections::range;
+
 mod hash;
 
 #[stable(feature = "rust1", since = "1.0.0")]
diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs
index c2f6a6f660c..71e0ab0388f 100644
--- a/src/libstd/lib.rs
+++ b/src/libstd/lib.rs
@@ -224,6 +224,7 @@
 #![feature(char_internals)]
 #![feature(collections)]
 #![feature(collections_bound)]
+#![feature(collections_range)]
 #![feature(compiler_builtins_lib)]
 #![feature(const_fn)]
 #![feature(core_float)]