mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
29017e45a1
`Either` is wasteful for a one-or-none iterator, especially since `Once` is already an `option::IntoIter` internally. We don't really need any of the iterator mechanisms in this case, just a single conditional insert.
For more information about how rustc works, see the rustc dev guide.