about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2025-02-04 13:01:32 -0700
committerMichael Howell <michael@notriddle.com>2025-02-04 13:07:06 -0700
commitc0126939617dc86b0c5d29a712ce9e8fc67d2f0f (patch)
treec524ba7036ba64d6db637cbe035506a789e37e20 /compiler/rustc_pattern_analysis/src
parent75e3a2e905ec17ae430a936d620862c598b022bb (diff)
downloadrust-c0126939617dc86b0c5d29a712ce9e8fc67d2f0f.tar.gz
rust-c0126939617dc86b0c5d29a712ce9e8fc67d2f0f.zip
needless_collect: avoid warning if non-iterator methods are used
It can make sense to `collect()` an iterator and then immediately
iterate over it if the iterator has special methods that you need.
For example, the Map iterator doesn't implement Clone, but the
collection iterator might. Or the collection iterator might
support slicing.
Diffstat (limited to 'compiler/rustc_pattern_analysis/src')
0 files changed, 0 insertions, 0 deletions