mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 17:18:32 +03:00
cf22be186c
fix Drop items getting leaked in Filter::next_chunk The optimization only makes sense for non-drop elements anyway. Use the default implementation for items that are Drop instead. It also simplifies the implementation. fixes #126872 tracking issue #98326