diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-03-03 11:28:57 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-03-03 11:28:57 -0800 |
| commit | da03392e1f65f51867c9680fe29972f2e4e3f124 (patch) | |
| tree | 65de36c022cd2cc94a82e5617b8c31daea0c4a31 /src/libcore | |
| parent | 14f0942a49b77f81d0bedb3d8b5fb615ef521bb3 (diff) | |
| download | rust-da03392e1f65f51867c9680fe29972f2e4e3f124.tar.gz rust-da03392e1f65f51867c9680fe29972f2e4e3f124.zip | |
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`.
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/ops.rs | 1 |
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 |
