rust/library/core/src/iter
bors 9fbbe75fd7 Auto merge of #95602 - scottmcm:faster-array-intoiter-fold, r=the8472
Fix `array::IntoIter::fold` to use the optimized `Range::fold`

It was using `Iterator::by_ref` in the implementation, which ended up pessimizing it enough that, for example, it didn't vectorize when we tried it in the <https://rust-lang.zulipchat.com/#narrow/stream/257879-project-portable-simd/topic/Reducing.20sum.20into.20wider.20types> conversation.

Demonstration that the codegen test doesn't pass on the current nightly: <https://rust.godbolt.org/z/Taxev5eMn>
2022-05-14 03:12:53 +00:00
..
adapters Auto merge of #95602 - scottmcm:faster-array-intoiter-fold, r=the8472 2022-05-14 03:12:53 +00:00
sources Fixed grammatical error in example comment 2022-04-27 17:27:02 +02:00
traits Better error messages when collecting into [T; n] 2022-04-26 21:37:10 -07:00
mod.rs Remove mention of HashMap<K, V> not offering iter_mut 2022-03-26 02:05:34 -04:00
range.rs Warn on unused doc(hidden) on trait impl items 2022-05-08 22:53:14 +02:00
sources.rs Compute most of Public/Exported access level in rustc_resolve 2022-01-09 21:33:14 +00:00