diff options
| author | bors <bors@rust-lang.org> | 2023-11-28 12:22:16 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-11-28 12:22:16 +0000 |
| commit | df0295f07175acc7325ce3ca4152eb05752af1f2 (patch) | |
| tree | 664b294535398b82283c0edcf032b7f46c11b950 /tests/rustdoc-js-std/basic.js | |
| parent | 46a24ed2f4b4bdfccca36fb20b1574a6164893d8 (diff) | |
| parent | 072b51cbb5b4ee39ae433b5f92a5952054e6caf3 (diff) | |
| download | rust-df0295f07175acc7325ce3ca4152eb05752af1f2.tar.gz rust-df0295f07175acc7325ce3ca4152eb05752af1f2.zip | |
Auto merge of #110353 - the8472:in-place-flatten-chunks, r=cuviper
Expand in-place iteration specialization to Flatten, FlatMap and ArrayChunks This enables the following cases to collect in-place: ```rust let v = vec![[0u8; 4]; 1024] let v: Vec<_> = v.into_iter().flatten().collect(); let v: Vec<Option<NonZeroUsize>> = vec![NonZeroUsize::new(0); 1024]; let v: Vec<_> = v.into_iter().flatten().collect(); let v = vec![u8; 4096]; let v: Vec<_> = v.into_iter().array_chunks::<4>().collect(); ``` Especially the nicheful-option-flattening should be useful in real code.
Diffstat (limited to 'tests/rustdoc-js-std/basic.js')
0 files changed, 0 insertions, 0 deletions
