From da03392e1f65f51867c9680fe29972f2e4e3f124 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Tue, 3 Mar 2015 11:28:57 -0800 Subject: [PATCH] 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`. --- src/libcore/ops.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libcore/ops.rs b/src/libcore/ops.rs index c382ac46d5d..4116d8be9fb 100644 --- a/src/libcore/ops.rs +++ b/src/libcore/ops.rs @@ -913,6 +913,7 @@ shr_impl_all! { u8 u16 u32 u64 usize i8 i16 i32 i64 isize } #[stable(feature = "rust1", since = "1.0.0")] pub trait Index { /// The returned type after indexing + #[stable(feature = "rust1", since = "1.0.0")] type Output: ?Sized; /// The method for the indexing (`Foo[Bar]`) operation