about summary refs log tree commit diff
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-03-04 15:46:35 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-03-05 12:37:49 +0530
commit24f00eb2aef34210067e76afe8e7d7786bfbed6f (patch)
treed135cd46a3c827b12ecf41e75232b491e4ea71fa
parentbb459bf95b67c482a9ddcba4bca5f8b433444e60 (diff)
parentda03392e1f65f51867c9680fe29972f2e4e3f124 (diff)
downloadrust-24f00eb2aef34210067e76afe8e7d7786bfbed6f.tar.gz
rust-24f00eb2aef34210067e76afe8e7d7786bfbed6f.zip
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`.
-rw-r--r--src/libcore/ops.rs1
1 files changed, 1 insertions, 0 deletions
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<Idx: ?Sized> {
     /// The returned type after indexing
+    #[stable(feature = "rust1", since = "1.0.0")]
     type Output: ?Sized;
 
     /// The method for the indexing (`Foo[Bar]`) operation