diff options
| author | bors <bors@rust-lang.org> | 2018-05-25 22:18:27 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-05-25 22:18:27 +0000 |
| commit | 07c415c2154f29d6dce8da0154ef41c8a5497fbf (patch) | |
| tree | 28953c14cf6541f651c295f9815ae4c2aa5614d9 /src/libstd | |
| parent | 990d8aa743b1dda3cc0f68fe09524486261812c6 (diff) | |
| parent | f7c4a33f32b8139778b8c6792b9e55c74770a234 (diff) | |
| download | rust-07c415c2154f29d6dce8da0154ef41c8a5497fbf.tar.gz rust-07c415c2154f29d6dce8da0154ef41c8a5497fbf.zip | |
Auto merge of #51033 - coryshrmn:master, r=dtolnay
stabilize RangeBounds collections_range #30877 The FCP for #30877 closed last month, with the decision to: 1. move from `collections::range::RangeArgument` to `ops::RangeBounds`, and 2. rename `start()` and `end()` to `start_bounds()` and `end_bounds()`. Simon Sapin already moved it to `ops::RangeBounds` in #49163. I renamed the functions, and removed the old `collections::range::RangeArgument` alias. This is my first Rust PR, please let me know if I can improve anything. This passes all tests for me, except the `clippy` tool (which uses `RangeArgument::start()`). I considered deprecating `start()` and `end()` instead of removing them, but the contribution guidelines indicate we can break `clippy` temporarily. I thought it was best to remove the functions, since we're worried about name collisions with `Range::start` and `end`. Closes #30877.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/collections/mod.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/libstd/collections/mod.rs b/src/libstd/collections/mod.rs index 9cf73824dea..d8e79b97970 100644 --- a/src/libstd/collections/mod.rs +++ b/src/libstd/collections/mod.rs @@ -437,14 +437,6 @@ pub use self::hash_map::HashMap; #[stable(feature = "rust1", since = "1.0.0")] pub use self::hash_set::HashSet; -#[unstable(feature = "collections_range", issue = "30877")] -#[rustc_deprecated(reason = "renamed and moved to `std::ops::RangeBounds`", since = "1.26.0")] -#[doc(hidden)] -/// Range syntax -pub mod range { - pub use ops::RangeBounds as RangeArgument; -} - #[unstable(feature = "try_reserve", reason = "new API", issue="48043")] pub use heap::CollectionAllocErr; |
