Add missing const stability attributes

This commit is contained in:
Jacob Pratt
2021-11-17 21:08:16 -05:00
parent 41f84c258a
commit 1911eb8b61
7 changed files with 14 additions and 7 deletions

View File

@@ -512,6 +512,7 @@ impl<T, const N: usize> [T; N] {
/// Returns a slice containing the entire array. Equivalent to `&s[..]`.
#[stable(feature = "array_as_slice", since = "1.57.0")]
#[rustc_const_stable(feature = "array_as_slice", since = "1.57.0")]
pub const fn as_slice(&self) -> &[T] {
self
}