Rollup merge of #23001 - alexcrichton:index-output-stable, r=nikomatsakis

This stability attribute was left out by accident and the stability pass has
since picked up the ability to check for this. As a result, crates are currently
getting warnings for implementations of `Index`.
This commit is contained in:
Manish Goregaokar 2015-03-04 15:46:35 +05:30
commit 24f00eb2ae

View File

@ -913,6 +913,7 @@ shr_impl_all! { u8 u16 u32 u64 usize i8 i16 i32 i64 isize }
#[stable(feature = "rust1", since = "1.0.0")] #[stable(feature = "rust1", since = "1.0.0")]
pub trait Index<Idx: ?Sized> { pub trait Index<Idx: ?Sized> {
/// The returned type after indexing /// The returned type after indexing
#[stable(feature = "rust1", since = "1.0.0")]
type Output: ?Sized; type Output: ?Sized;
/// The method for the indexing (`Foo[Bar]`) operation /// The method for the indexing (`Foo[Bar]`) operation