Unnamed repository; edit this file 'description' to name the repository.
Auto merge of #119599 - marthadev:position, r=the8472
Rewrite Iterator::position default impl
Storing the accumulating value outside the fold in an attempt to improve code generation has shown speedups on various handwritten benchmarks, see discussion at #119551.