about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorJubilee <workingjubilee@gmail.com>2025-01-04 17:23:16 -0800
committerGitHub <noreply@github.com>2025-01-04 17:23:16 -0800
commit5be6c9bc12d68d9f8e29b881cfffb6ba9442c519 (patch)
treee3edd4d8eaf93329e73fd7c33504f2b11969dce3 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parentdcb8be8934a3e3f2ba6f15612d482c0945bedd5f (diff)
parent1ed0ea459dc5456ebcedb798cc88671014cf0f68 (diff)
downloadrust-5be6c9bc12d68d9f8e29b881cfffb6ba9442c519.tar.gz
rust-5be6c9bc12d68d9f8e29b881cfffb6ba9442c519.zip
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.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions