From 1911eb8b6180f513a666372baf6e56f78b82dcd8 Mon Sep 17 00:00:00 2001 From: Jacob Pratt Date: Wed, 17 Nov 2021 21:08:16 -0500 Subject: Add missing const stability attributes --- library/core/src/array/mod.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'library/core/src/array') diff --git a/library/core/src/array/mod.rs b/library/core/src/array/mod.rs index 121aa634deb..ee79021ed53 100644 --- a/library/core/src/array/mod.rs +++ b/library/core/src/array/mod.rs @@ -512,6 +512,7 @@ impl [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 } -- cgit 1.4.1-3-g733a5