diff options
| author | Simon Sapin <simon.sapin@exyr.org> | 2018-03-19 09:26:29 +0100 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2018-03-29 13:12:49 +0200 |
| commit | 16d3ba1b23195da2d53e058c58c2a41def914dec (patch) | |
| tree | 29ca377ec9cc86f41950a1897adc89b48a4c1825 /src/libstd | |
| parent | c3a63970dee2422e2fcc79d8b99303b4b046f444 (diff) | |
| download | rust-16d3ba1b23195da2d53e058c58c2a41def914dec.tar.gz rust-16d3ba1b23195da2d53e058c58c2a41def914dec.zip | |
Move RangeArguments to {core::std}::ops and rename to RangeBounds
These unstable items are deprecated: * The `std::collections::range::RangeArgument` reexport * The `std::collections::range` module.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/collections/mod.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/libstd/collections/mod.rs b/src/libstd/collections/mod.rs index e6f15a6119e..47ea3bc26bf 100644 --- a/src/libstd/collections/mod.rs +++ b/src/libstd/collections/mod.rs @@ -436,8 +436,12 @@ 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 alloc::range; +#[unstable(feature = "collections_range", issue = "30877")] +#[rustc_deprecated(reason = "renamed and moved to `std::ops::RangeBounds`", since = "1.26.0")] +/// Range syntax +pub mod range { + pub use ops::RangeBounds as RangeArgument; +} #[unstable(feature = "try_reserve", reason = "new API", issue="48043")] pub use alloc::allocator::CollectionAllocErr; |
