diff options
| author | Steven Fackler <sfackler@gmail.com> | 2017-06-30 08:34:53 -1000 |
|---|---|---|
| committer | Steven Fackler <sfackler@gmail.com> | 2017-06-30 08:34:53 -1000 |
| commit | 0a9c13624d2fede5c6ce8e5aa7f486403098bde6 (patch) | |
| tree | 0eab912d432fe03866fdaf362710bd7bf0752703 /src/librustc_data_structures | |
| parent | e72580cf091190c6258648e4cfbca083f20ece3d (diff) | |
| download | rust-0a9c13624d2fede5c6ce8e5aa7f486403098bde6.tar.gz rust-0a9c13624d2fede5c6ce8e5aa7f486403098bde6.zip | |
Revert "Stabilize RangeArgument"
This reverts commit 143206d54d7558c2326212df99efc98110904fdb.
Diffstat (limited to 'src/librustc_data_structures')
| -rw-r--r-- | src/librustc_data_structures/accumulate_vec.rs | 3 | ||||
| -rw-r--r-- | src/librustc_data_structures/array_vec.rs | 5 | ||||
| -rw-r--r-- | src/librustc_data_structures/indexed_vec.rs | 3 | ||||
| -rw-r--r-- | src/librustc_data_structures/lib.rs | 1 |
4 files changed, 8 insertions, 4 deletions
diff --git a/src/librustc_data_structures/accumulate_vec.rs b/src/librustc_data_structures/accumulate_vec.rs index eacd394ad5e..c03c2890ba3 100644 --- a/src/librustc_data_structures/accumulate_vec.rs +++ b/src/librustc_data_structures/accumulate_vec.rs @@ -15,10 +15,11 @@ //! //! The N above is determined by Array's implementor, by way of an associatated constant. -use std::ops::{Deref, DerefMut, RangeArgument}; +use std::ops::{Deref, DerefMut}; use std::iter::{self, IntoIterator, FromIterator}; use std::slice; use std::vec; +use std::collections::range::RangeArgument; use rustc_serialize::{Encodable, Encoder, Decodable, Decoder}; diff --git a/src/librustc_data_structures/array_vec.rs b/src/librustc_data_structures/array_vec.rs index a9abdf1377e..078bb801751 100644 --- a/src/librustc_data_structures/array_vec.rs +++ b/src/librustc_data_structures/array_vec.rs @@ -13,12 +13,13 @@ use std::marker::Unsize; use std::iter::Extend; use std::ptr::{self, drop_in_place, Shared}; -use std::ops::{Deref, DerefMut, Range, RangeArgument}; -use std::ops::Bound::{Excluded, Included, Unbounded}; +use std::ops::{Deref, DerefMut, Range}; use std::hash::{Hash, Hasher}; use std::slice; use std::fmt; use std::mem; +use std::collections::range::RangeArgument; +use std::collections::Bound::{Excluded, Included, Unbounded}; use std::mem::ManuallyDrop; pub unsafe trait Array { diff --git a/src/librustc_data_structures/indexed_vec.rs b/src/librustc_data_structures/indexed_vec.rs index 3bf926fa8bf..29ac650aa70 100644 --- a/src/librustc_data_structures/indexed_vec.rs +++ b/src/librustc_data_structures/indexed_vec.rs @@ -8,11 +8,12 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +use std::collections::range::RangeArgument; use std::fmt::Debug; use std::iter::{self, FromIterator}; use std::slice; use std::marker::PhantomData; -use std::ops::{Index, IndexMut, Range, RangeArgument}; +use std::ops::{Index, IndexMut, Range}; use std::fmt; use std::vec; use std::u32; diff --git a/src/librustc_data_structures/lib.rs b/src/librustc_data_structures/lib.rs index 0bbda547761..d63b4c9c31b 100644 --- a/src/librustc_data_structures/lib.rs +++ b/src/librustc_data_structures/lib.rs @@ -25,6 +25,7 @@ #![deny(warnings)] #![feature(shared)] +#![feature(collections_range)] #![feature(nonzero)] #![feature(unboxed_closures)] #![feature(fn_traits)] |
