rust/library/alloc
Jubilee 5be6c9bc12
Rollup merge of #135104 - the8472:disable-in-place-iter-for-flatten, r=Mark-Simulacrum
do not in-place-iterate over flatmap/flatten

The implementation is unsound when a partially consumed iterator has some elements buffered in the front/back parts and cloning the Iterator removes the capacity from the backing vec::IntoIter.

This is a fix for #135103 that removes the specialization trait impls without removing some supporting parts. I've kept it small so it can be easily backported. I'll either remove the remaining parts or think of a way to recover the optimization in a separate PR.
2025-01-04 17:23:16 -08:00
..
benches update cfgs 2024-11-27 15:14:54 +00:00
src turn rustc_box into an intrinsic 2025-01-03 12:01:31 +01:00
tests add regression test for unsound Flatten/FlatMap specialization 2025-01-04 19:44:49 +01:00
Cargo.toml Update compiler-builtins to 0.1.140 2024-12-27 22:26:08 +00:00