From f0e6b90790da2203f04fa44ee3ed8f24dcc5f4dc Mon Sep 17 00:00:00 2001 From: Ulrik Sverdrup Date: Fri, 4 Nov 2016 00:24:59 +0100 Subject: [PATCH] Link the tracking issue for TrustedLen --- src/libcollections/vec.rs | 2 +- src/libcore/iter/mod.rs | 14 +++++++------- src/libcore/iter/range.rs | 2 +- src/libcore/iter/traits.rs | 4 ++-- src/libcore/option.rs | 6 +++--- src/libcore/result.rs | 6 +++--- src/libcore/slice.rs | 4 ++-- 7 files changed, 19 insertions(+), 19 deletions(-) diff --git a/src/libcollections/vec.rs b/src/libcollections/vec.rs index 16331960cc198..053dcd8272e29 100644 --- a/src/libcollections/vec.rs +++ b/src/libcollections/vec.rs @@ -1931,7 +1931,7 @@ impl ExactSizeIterator for IntoIter {} #[unstable(feature = "fused", issue = "35602")] impl FusedIterator for IntoIter {} -#[unstable(feature = "trusted_len", issue = "0")] +#[unstable(feature = "trusted_len", issue = "37572")] unsafe impl TrustedLen for IntoIter {} #[stable(feature = "vec_into_iter_clone", since = "1.8.0")] diff --git a/src/libcore/iter/mod.rs b/src/libcore/iter/mod.rs index 9fa950cd94d9e..58d04218e072c 100644 --- a/src/libcore/iter/mod.rs +++ b/src/libcore/iter/mod.rs @@ -328,7 +328,7 @@ pub use self::traits::{FromIterator, IntoIterator, DoubleEndedIterator, Extend}; pub use self::traits::{ExactSizeIterator, Sum, Product}; #[unstable(feature = "fused", issue = "35602")] pub use self::traits::FusedIterator; -#[unstable(feature = "trusted_len", issue = "0")] +#[unstable(feature = "trusted_len", issue = "37572")] pub use self::traits::TrustedLen; mod iterator; @@ -374,7 +374,7 @@ impl ExactSizeIterator for Rev impl FusedIterator for Rev where I: FusedIterator + DoubleEndedIterator {} -#[unstable(feature = "trusted_len", issue = "0")] +#[unstable(feature = "trusted_len", issue = "37572")] unsafe impl TrustedLen for Rev where I: TrustedLen + DoubleEndedIterator {} @@ -438,7 +438,7 @@ unsafe impl<'a, I, T: 'a> TrustedRandomAccess for Cloned fn may_have_side_effect() -> bool { true } } -#[unstable(feature = "trusted_len", issue = "0")] +#[unstable(feature = "trusted_len", issue = "37572")] unsafe impl<'a, I, T: 'a> TrustedLen for Cloned where I: TrustedLen, T: Clone @@ -654,7 +654,7 @@ impl FusedIterator for Chain B: FusedIterator, {} -#[unstable(feature = "trusted_len", issue = "0")] +#[unstable(feature = "trusted_len", issue = "37572")] unsafe impl TrustedLen for Chain where A: TrustedLen, B: TrustedLen, {} @@ -876,7 +876,7 @@ unsafe impl TrustedRandomAccess for Zip impl FusedIterator for Zip where A: FusedIterator, B: FusedIterator, {} -#[unstable(feature = "trusted_len", issue = "0")] +#[unstable(feature = "trusted_len", issue = "37572")] unsafe impl TrustedLen for Zip where A: TrustedLen, B: TrustedLen, {} @@ -981,7 +981,7 @@ impl ExactSizeIterator for Map impl FusedIterator for Map where F: FnMut(I::Item) -> B {} -#[unstable(feature = "trusted_len", issue = "0")] +#[unstable(feature = "trusted_len", issue = "37572")] unsafe impl TrustedLen for Map where I: TrustedLen, F: FnMut(I::Item) -> B {} @@ -1222,7 +1222,7 @@ unsafe impl TrustedRandomAccess for Enumerate #[unstable(feature = "fused", issue = "35602")] impl FusedIterator for Enumerate where I: FusedIterator {} -#[unstable(feature = "trusted_len", issue = "0")] +#[unstable(feature = "trusted_len", issue = "37572")] unsafe impl TrustedLen for Enumerate where I: TrustedLen, {} diff --git a/src/libcore/iter/range.rs b/src/libcore/iter/range.rs index ab55ee9d9d7b0..7c96be2facb48 100644 --- a/src/libcore/iter/range.rs +++ b/src/libcore/iter/range.rs @@ -482,7 +482,7 @@ macro_rules! range_incl_exact_iter_impl { macro_rules! range_trusted_len_impl { ($($t:ty)*) => ($( - #[unstable(feature = "trusted_len", issue = "0")] + #[unstable(feature = "trusted_len", issue = "37572")] unsafe impl TrustedLen for ops::Range<$t> { } )*) } diff --git a/src/libcore/iter/traits.rs b/src/libcore/iter/traits.rs index a56a864f6180d..2b0dd63a5714a 100644 --- a/src/libcore/iter/traits.rs +++ b/src/libcore/iter/traits.rs @@ -679,8 +679,8 @@ impl<'a, I: FusedIterator + ?Sized> FusedIterator for &'a mut I {} /// /// This trait must only be implemented when the contract is upheld. /// Consumers of this trait must inspect `.size_hint()`’s upper bound. -#[unstable(feature = "trusted_len", issue = "0")] +#[unstable(feature = "trusted_len", issue = "37572")] pub unsafe trait TrustedLen : Iterator {} -#[unstable(feature = "trusted_len", issue = "0")] +#[unstable(feature = "trusted_len", issue = "37572")] unsafe impl<'a, I: TrustedLen + ?Sized> TrustedLen for &'a mut I {} diff --git a/src/libcore/option.rs b/src/libcore/option.rs index 28845ef5e8c11..063adc2ac9f8a 100644 --- a/src/libcore/option.rs +++ b/src/libcore/option.rs @@ -834,7 +834,7 @@ impl<'a, A> ExactSizeIterator for Iter<'a, A> {} #[unstable(feature = "fused", issue = "35602")] impl<'a, A> FusedIterator for Iter<'a, A> {} -#[unstable(feature = "trusted_len", issue = "0")] +#[unstable(feature = "trusted_len", issue = "37572")] unsafe impl<'a, A> TrustedLen for Iter<'a, A> {} #[stable(feature = "rust1", since = "1.0.0")] @@ -872,7 +872,7 @@ impl<'a, A> ExactSizeIterator for IterMut<'a, A> {} #[unstable(feature = "fused", issue = "35602")] impl<'a, A> FusedIterator for IterMut<'a, A> {} -#[unstable(feature = "trusted_len", issue = "0")] +#[unstable(feature = "trusted_len", issue = "37572")] unsafe impl<'a, A> TrustedLen for IterMut<'a, A> {} /// An iterator over the item contained inside an [`Option`]. @@ -904,7 +904,7 @@ impl ExactSizeIterator for IntoIter {} #[unstable(feature = "fused", issue = "35602")] impl FusedIterator for IntoIter {} -#[unstable(feature = "trusted_len", issue = "0")] +#[unstable(feature = "trusted_len", issue = "37572")] unsafe impl TrustedLen for IntoIter {} ///////////////////////////////////////////////////////////////////////////// diff --git a/src/libcore/result.rs b/src/libcore/result.rs index 8985e7c8251e1..bae1eda7c4a9b 100644 --- a/src/libcore/result.rs +++ b/src/libcore/result.rs @@ -886,7 +886,7 @@ impl<'a, T> ExactSizeIterator for Iter<'a, T> {} #[unstable(feature = "fused", issue = "35602")] impl<'a, T> FusedIterator for Iter<'a, T> {} -#[unstable(feature = "trusted_len", issue = "0")] +#[unstable(feature = "trusted_len", issue = "37572")] unsafe impl<'a, A> TrustedLen for Iter<'a, A> {} #[stable(feature = "rust1", since = "1.0.0")] @@ -927,7 +927,7 @@ impl<'a, T> ExactSizeIterator for IterMut<'a, T> {} #[unstable(feature = "fused", issue = "35602")] impl<'a, T> FusedIterator for IterMut<'a, T> {} -#[unstable(feature = "trusted_len", issue = "0")] +#[unstable(feature = "trusted_len", issue = "37572")] unsafe impl<'a, A> TrustedLen for IterMut<'a, A> {} /// An iterator over the value in a [`Ok`] variant of a [`Result`]. This struct is @@ -967,7 +967,7 @@ impl ExactSizeIterator for IntoIter {} #[unstable(feature = "fused", issue = "35602")] impl FusedIterator for IntoIter {} -#[unstable(feature = "trusted_len", issue = "0")] +#[unstable(feature = "trusted_len", issue = "37572")] unsafe impl TrustedLen for IntoIter {} ///////////////////////////////////////////////////////////////////////////// diff --git a/src/libcore/slice.rs b/src/libcore/slice.rs index 64d38c54c4767..871b63145ca6d 100644 --- a/src/libcore/slice.rs +++ b/src/libcore/slice.rs @@ -988,7 +988,7 @@ impl<'a, T> ExactSizeIterator for Iter<'a, T> {} #[unstable(feature = "fused", issue = "35602")] impl<'a, T> FusedIterator for Iter<'a, T> {} -#[unstable(feature = "trusted_len", issue = "0")] +#[unstable(feature = "trusted_len", issue = "37572")] unsafe impl<'a, T> TrustedLen for Iter<'a, T> {} #[stable(feature = "rust1", since = "1.0.0")] @@ -1112,7 +1112,7 @@ impl<'a, T> ExactSizeIterator for IterMut<'a, T> {} #[unstable(feature = "fused", issue = "35602")] impl<'a, T> FusedIterator for IterMut<'a, T> {} -#[unstable(feature = "trusted_len", issue = "0")] +#[unstable(feature = "trusted_len", issue = "37572")] unsafe impl<'a, T> TrustedLen for IterMut<'a, T> {} /// An internal abstraction over the splitting iterators, so that