about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper
diff options
context:
space:
mode:
authorNoah Lev <camelidcamel@gmail.com>2021-11-18 23:04:51 -0500
committerNoah Lev <camelidcamel@gmail.com>2021-11-18 23:04:51 -0500
commita792234388461e3c6b6104cae490aa21b15102e4 (patch)
tree45a978ab75d97fc7a98c17480fcf7433cd110255 /compiler/rustc_llvm/llvm-wrapper
parentf4687d5381499ce36f51ffeac4ce61ff627d4bec (diff)
downloadrust-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