diff options
| author | Noah Lev <camelidcamel@gmail.com> | 2021-11-18 23:04:51 -0500 |
|---|---|---|
| committer | Noah Lev <camelidcamel@gmail.com> | 2021-11-18 23:04:51 -0500 |
| commit | a792234388461e3c6b6104cae490aa21b15102e4 (patch) | |
| tree | 45a978ab75d97fc7a98c17480fcf7433cd110255 /compiler/rustc_llvm/llvm-wrapper | |
| parent | f4687d5381499ce36f51ffeac4ce61ff627d4bec (diff) | |
| download | rust-a792234388461e3c6b6104cae490aa21b15102e4.tar.gz rust-a792234388461e3c6b6104cae490aa21b15102e4.zip | |
rustdoc: Avoid using `Iterator::count()` where possible
`count()` iterates over the whole collection. Using `len()` instead, or `.next().is_none()` when comparing to zero, should be faster.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper')
0 files changed, 0 insertions, 0 deletions
