Skip to content

Commit da03392

Browse files
committed
std: Mark Index::Output as a stable associated type
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`.
1 parent 14f0942 commit da03392

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)