diff options
| author | bors <bors@rust-lang.org> | 2023-11-01 15:52:56 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-11-01 15:52:56 +0000 |
| commit | 919f698da0f5917d9f9620e510b69a81234249bc (patch) | |
| tree | 41e1ffdccecb4e70cc4ff7b21b0aad043ccbafb2 /compiler/rustc_parse/src | |
| parent | 7d34406015fce08031d0986dec0a4689a3cc407e (diff) | |
| parent | bb9cc6d47c11d33087d5776ecc261b95c6dace74 (diff) | |
| download | rust-919f698da0f5917d9f9620e510b69a81234249bc.tar.gz rust-919f698da0f5917d9f9620e510b69a81234249bc.zip | |
Auto merge of #10404 - dnbln:feat/unused_enumerate_index, r=blyxyas
Add `unused_enumerate_index` lint A lint for unused `.enumerate()` indexes (`for (_, x) in iter.enumerate()`). I wasn't able to find a `rustc_span::sym::Enumerate`, so the code for checking that it's the correct `Enumerate` iterator is a bit weird. --- changelog: New lint: [`unused_enumerate_index`]: A new lint for checking that the indexes from `.enumerate()` calls are used. [#10404](https://github.com/rust-lang/rust-clippy/pull/10404) <!-- changelog_checked -->
Diffstat (limited to 'compiler/rustc_parse/src')
0 files changed, 0 insertions, 0 deletions
