diff options
| author | bors <bors@rust-lang.org> | 2024-11-03 02:32:48 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-11-03 02:32:48 +0000 |
| commit | 67395551d07b0eaf6a45ed3bf1759530ca2235d7 (patch) | |
| tree | 4d349e723ac68aaa6846768634fd3ddef0326182 /library/core/src/array | |
| parent | 8ccb78e0d5b1775b42153730d49de6456cf10a70 (diff) | |
| parent | 66351a61844aaabe76173c7c790c1a9adbc3d4a8 (diff) | |
| download | rust-67395551d07b0eaf6a45ed3bf1759530ca2235d7.tar.gz rust-67395551d07b0eaf6a45ed3bf1759530ca2235d7.zip | |
Auto merge of #132458 - RalfJung:rustc-const-unstable, r=Amanieu
get rid of a whole bunch of unnecessary rustc_const_unstable attributes In general, when a `const fn` is still unstable, it doesn't need a `#[rustc_const_unstable]` attribute. The only exception is functions that internally use things that can't be used in stable const fn yet. So this gets rid of a whole bunch of `#[rustc_const_unstable]` in libcore.
Diffstat (limited to 'library/core/src/array')
| -rw-r--r-- | library/core/src/array/iter.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/library/core/src/array/iter.rs b/library/core/src/array/iter.rs index 2d19e4876f6..9ce0eb61e08 100644 --- a/library/core/src/array/iter.rs +++ b/library/core/src/array/iter.rs @@ -136,7 +136,6 @@ impl<T, const N: usize> IntoIter<T, N> { /// assert_eq!(r.collect::<Vec<_>>(), vec![10, 11, 12, 13, 14, 15]); /// ``` #[unstable(feature = "array_into_iter_constructors", issue = "91583")] - #[rustc_const_unstable(feature = "const_array_into_iter_constructors", issue = "91583")] pub const unsafe fn new_unchecked( buffer: [MaybeUninit<T>; N], initialized: Range<usize>, @@ -199,7 +198,6 @@ impl<T, const N: usize> IntoIter<T, N> { /// assert_eq!(get_bytes(false).collect::<Vec<_>>(), vec![]); /// ``` #[unstable(feature = "array_into_iter_constructors", issue = "91583")] - #[rustc_const_unstable(feature = "const_array_into_iter_constructors", issue = "91583")] pub const fn empty() -> Self { let buffer = [const { MaybeUninit::uninit() }; N]; let initialized = 0..0; |
