mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-23 07:06:42 +00:00
Prefer to use repeat_n over repeat().take()
More from https://github.com/rust-lang/rust/pull/147464, but batch processed with `ast-grep` to find and replace.
second commit add notes for library: affaf532f9
r? ``@RalfJung``