diff options
| author | bors <bors@rust-lang.org> | 2021-06-20 20:07:13 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-06-20 20:07:13 +0000 |
| commit | e82b65026dcadf0998e3abf9dabc677f63160de7 (patch) | |
| tree | 0670c35787abd16bdadd0bac977a6a37d4050557 /compiler/rustc_codegen_llvm | |
| parent | dd941450fbf705129dff8ce021d4b5602563555a (diff) | |
| parent | c08ea1724b0b21a0ef81ee2d6976b0a3cf2db043 (diff) | |
| download | rust-e82b65026dcadf0998e3abf9dabc677f63160de7.tar.gz rust-e82b65026dcadf0998e3abf9dabc677f63160de7.zip | |
Auto merge of #85538 - r00ster91:iterrepeat, r=Mark-Simulacrum
Replace some `std::iter::repeat` with `str::repeat` I noticed that there were some instances where `std::iter::repeat` would be used to repeat a string or a char to take a specific count of it and then collect it into a `String` when `str::repeat` is actually much faster and better for that. See also: https://github.com/rust-lang/rust-clippy/issues/7260.
Diffstat (limited to 'compiler/rustc_codegen_llvm')
0 files changed, 0 insertions, 0 deletions
