diff options
| author | Jacob Pratt <jacob@jhpratt.dev> | 2021-11-17 21:08:16 -0500 |
|---|---|---|
| committer | Jacob Pratt <jacob@jhpratt.dev> | 2022-02-03 19:15:57 -0500 |
| commit | 1911eb8b6180f513a666372baf6e56f78b82dcd8 (patch) | |
| tree | 8b46f6a3188316dda2ed117e5414ee2de79fc914 /library/core/src/array | |
| parent | 41f84c258ad5fc12775e25aafe4d67e3304a5bda (diff) | |
| download | rust-1911eb8b6180f513a666372baf6e56f78b82dcd8.tar.gz rust-1911eb8b6180f513a666372baf6e56f78b82dcd8.zip | |
Add missing const stability attributes
Diffstat (limited to 'library/core/src/array')
| -rw-r--r-- | library/core/src/array/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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, 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 } |
