mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
Rollup merge of #102405 - hkBst:patch-3, r=Mark-Simulacrum
Remove a FIXME whose code got moved away in #62883. Remove a FIXME whose code got moved away in https://github.com/rust-lang/rust/pull/62883.
This commit is contained in:
commit
baba8391c3
@ -2066,9 +2066,6 @@ impl<A, E, V: FromIterator<A>> FromIterator<Result<A, E>> for Result<V, E> {
|
|||||||
/// so the final value of `shared` is 6 (= `3 + 2 + 1`), not 16.
|
/// so the final value of `shared` is 6 (= `3 + 2 + 1`), not 16.
|
||||||
#[inline]
|
#[inline]
|
||||||
fn from_iter<I: IntoIterator<Item = Result<A, E>>>(iter: I) -> Result<V, E> {
|
fn from_iter<I: IntoIterator<Item = Result<A, E>>>(iter: I) -> Result<V, E> {
|
||||||
// FIXME(#11084): This could be replaced with Iterator::scan when this
|
|
||||||
// performance bug is closed.
|
|
||||||
|
|
||||||
iter::try_process(iter.into_iter(), |i| i.collect())
|
iter::try_process(iter.into_iter(), |i| i.collect())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user