From 06a7dcd35588c0dd6eaa0a523b30e4140ff79868 Mon Sep 17 00:00:00 2001 From: Oliver Middleton Date: Wed, 28 Sep 2016 11:28:42 +0100 Subject: std: Correct stability attributes for some implementations These are displayed by rustdoc so should be correct. --- src/libcore/array.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/libcore/array.rs') diff --git a/src/libcore/array.rs b/src/libcore/array.rs index 9866a39619a..37bd57034a7 100644 --- a/src/libcore/array.rs +++ b/src/libcore/array.rs @@ -93,6 +93,7 @@ macro_rules! __impl_slice_eq2 { macro_rules! array_impls { ($($N:expr)+) => { $( + #[stable(feature = "rust1", since = "1.0.0")] impl AsRef<[T]> for [T; $N] { #[inline] fn as_ref(&self) -> &[T] { @@ -100,6 +101,7 @@ macro_rules! array_impls { } } + #[stable(feature = "rust1", since = "1.0.0")] impl AsMut<[T]> for [T; $N] { #[inline] fn as_mut(&mut self) -> &mut [T] { -- cgit 1.4.1-3-g733a5