about summary refs log tree commit diff
path: root/src/libcore/array.rs
diff options
context:
space:
mode:
authorOliver Middleton <olliemail27@gmail.com>2016-09-28 11:28:42 +0100
committerOliver Middleton <olliemail27@gmail.com>2016-10-01 23:58:14 +0100
commit06a7dcd35588c0dd6eaa0a523b30e4140ff79868 (patch)
tree9f51099430656742ccfc3b1be79f02952de590e4 /src/libcore/array.rs
parent5045d4e39621b265eca947277f07e23f62608ad0 (diff)
downloadrust-06a7dcd35588c0dd6eaa0a523b30e4140ff79868.tar.gz
rust-06a7dcd35588c0dd6eaa0a523b30e4140ff79868.zip
std: Correct stability attributes for some implementations
These are displayed by rustdoc so should be correct.
Diffstat (limited to 'src/libcore/array.rs')
-rw-r--r--src/libcore/array.rs2
1 files changed, 2 insertions, 0 deletions
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<T> 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<T> AsMut<[T]> for [T; $N] {
                 #[inline]
                 fn as_mut(&mut self) -> &mut [T] {