Skip to content

Commit cc1a240

Browse files
committed
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`.
2 parents 8368217 + da03392 commit cc1a240

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libcore/ops.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -913,6 +913,7 @@ shr_impl_all! { u8 u16 u32 u64 usize i8 i16 i32 i64 isize }
913913
#[stable(feature = "rust1", since = "1.0.0")]
914914
pub trait Index<Idx: ?Sized> {
915915
/// The returned type after indexing
916+
#[stable(feature = "rust1", since = "1.0.0")]
916917
type Output: ?Sized;
917918

918919
/// The method for the indexing (`Foo[Bar]`) operation

0 commit comments

Comments
 (0)