Update result.rs

Remove a FIXME whose code got moved away in https://github.com/rust-lang/rust/pull/62883.
This commit is contained in:
Marijn Schouten 2022-09-28 14:52:59 +02:00 committed by GitHub
parent 6201eabde8
commit ac310e6643
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.
#[inline]
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())
}
}