diff options
| author | Michael Howell <michael@notriddle.com> | 2025-02-04 13:01:32 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2025-02-04 13:07:06 -0700 |
| commit | c0126939617dc86b0c5d29a712ce9e8fc67d2f0f (patch) | |
| tree | c524ba7036ba64d6db637cbe035506a789e37e20 /compiler/rustc_pattern_analysis/src | |
| parent | 75e3a2e905ec17ae430a936d620862c598b022bb (diff) | |
| download | rust-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
