diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-06-10 17:59:02 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-06-17 09:07:16 -0700 |
| commit | 02a8d5b57057a5c76667e85e92ea2c8a95303150 (patch) | |
| tree | 4e454dcd34ff5972a4ca67976a8257481e449e44 /src/libcore | |
| parent | ce1a965cf54ce65fc43b535c27029ce183214063 (diff) | |
| download | rust-02a8d5b57057a5c76667e85e92ea2c8a95303150.tar.gz rust-02a8d5b57057a5c76667e85e92ea2c8a95303150.zip | |
std: Deprecate the RandomAccessIterator trait
This trait has not proven itself over time as being core and fundamentally useful to iterators, so it's being deprecated to allow time to iterate on it out of tree.
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/iter.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libcore/iter.rs b/src/libcore/iter.rs index 30c2d3fcb6d..9d7585993c3 100644 --- a/src/libcore/iter.rs +++ b/src/libcore/iter.rs @@ -1230,6 +1230,10 @@ impl<'a, I: DoubleEndedIterator + ?Sized> DoubleEndedIterator for &'a mut I { #[unstable(feature = "iter_idx", reason = "not widely used, may be better decomposed into Index \ and ExactSizeIterator")] +#[deprecated(since = "1.2.0", + reason = "trait has not proven itself as a widely useful \ + abstraction for iterators, and more time may be needed \ + for iteration on the design")] pub trait RandomAccessIterator: Iterator { /// Returns the number of indexable elements. At most `std::usize::MAX` /// elements are indexable, even if the iterator represents a longer range. |
