diff options
| author | Cyborus <cyborus@cyborus.xyz> | 2024-05-25 20:14:18 -0400 |
|---|---|---|
| committer | Cyborus <cyborus@cyborus.xyz> | 2024-05-26 01:26:24 -0400 |
| commit | 824ffd29eeaf6581eefdce2a1c462c8ab6339bf4 (patch) | |
| tree | 042808cf13352e47db7bf09b55bacb36ed139db9 /library/alloc/src/vec | |
| parent | 48f00110d0dae38b3046a9ac05d20ea321fd6637 (diff) | |
| download | rust-824ffd29eeaf6581eefdce2a1c462c8ab6339bf4.tar.gz rust-824ffd29eeaf6581eefdce2a1c462c8ab6339bf4.zip | |
Stabilize `slice_flatten`
Diffstat (limited to 'library/alloc/src/vec')
| -rw-r--r-- | library/alloc/src/vec/mod.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/library/alloc/src/vec/mod.rs b/library/alloc/src/vec/mod.rs index b2e22d8715a..aa9b632cbed 100644 --- a/library/alloc/src/vec/mod.rs +++ b/library/alloc/src/vec/mod.rs @@ -2643,15 +2643,13 @@ impl<T, A: Allocator, const N: usize> Vec<[T; N], A> { /// # Examples /// /// ``` - /// #![feature(slice_flatten)] - /// /// let mut vec = vec![[1, 2, 3], [4, 5, 6], [7, 8, 9]]; /// assert_eq!(vec.pop(), Some([7, 8, 9])); /// /// let mut flattened = vec.into_flattened(); /// assert_eq!(flattened.pop(), Some(6)); /// ``` - #[unstable(feature = "slice_flatten", issue = "95629")] + #[stable(feature = "slice_flatten", since = "CURRENT_RUSTC_VERSION")] pub fn into_flattened(self) -> Vec<T, A> { let (ptr, len, cap, alloc) = self.into_raw_parts_with_alloc(); let (new_len, new_cap) = if T::IS_ZST { |
