diff options
| author | Amogh Shivaram <ashivaram@solesca.com> | 2025-06-07 01:14:24 -0500 |
|---|---|---|
| committer | Amogh Shivaram <ashivaram@solesca.com> | 2025-06-07 01:14:24 -0500 |
| commit | 343db27aa6256ebbde88b1147eb42d41d4e77e64 (patch) | |
| tree | 99464b57c50aaca9b0d0d569ebd5f4dbc3be94d3 /library/alloc/src/vec/mod.rs | |
| parent | e4e77737f9eebf1ed6a382fa4f4b8403554dad7c (diff) | |
| download | rust-343db27aa6256ebbde88b1147eb42d41d4e77e64.tar.gz rust-343db27aa6256ebbde88b1147eb42d41d4e77e64.zip | |
cfg for no no_global_oom_handling
Diffstat (limited to 'library/alloc/src/vec/mod.rs')
| -rw-r--r-- | library/alloc/src/vec/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/alloc/src/vec/mod.rs b/library/alloc/src/vec/mod.rs index 8bd8db3b7e2..bdac38e9120 100644 --- a/library/alloc/src/vec/mod.rs +++ b/library/alloc/src/vec/mod.rs @@ -3024,6 +3024,7 @@ impl<T, A: Allocator> Vec<T, A> { /// let reshaped: Vec<[[[u8; 8]; 8]; 8]> = flat.into_chunks().into_chunks().into_chunks(); /// assert_eq!(reshaped.len(), 1); /// ``` + #[cfg(not(no_global_oom_handling))] #[unstable(feature = "vec_into_chunks", issue = "142137")] pub fn into_chunks<const N: usize>(mut self) -> Vec<[T; N], A> { const { |
