mirror of
https://github.com/rust-lang/rust.git
synced 2026-07-11 18:23:24 -04:00
3dad78a3e4
Simplify option-iterator flattening in the compiler In many cases where we are flattening `option::IntoIter<I>`, we can use `Option::into_flat_iter()` instead for a simpler implementation. A few other cases have more direct constructs available.