about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-03-07 13:35:07 +0000
committerbors <bors@rust-lang.org>2023-03-07 13:35:07 +0000
commit41fa24cef89c71430040332b42036f4ec839c4e0 (patch)
tree064e949cf2388fa4ebc9f75d9ff3d042aa1bcf0f /compiler/rustc_codegen_llvm/src
parent903595801e86c1d6bf8bd8aeeeb9127b04f19036 (diff)
parent4ee65535a708d6493b1a1d6276e6d06f8e156e14 (diff)
downloadrust-41fa24cef89c71430040332b42036f4ec839c4e0.tar.gz
rust-41fa24cef89c71430040332b42036f4ec839c4e0.zip
Auto merge of #10415 - schubart:collection_is_never_read, r=llogiq
Add `collection_is_never_read`

Fixes #9267

`@flip1995` and `@llogiq,` I talked with you about this one at Rust Nation in London last week. :-)

This is my first contribution to Clippy, so lots of feedback would be greatly appreciated.

- \[ ] Followed [lint naming conventions][lint_naming]
- \[x] Added passing UI tests (including committed `.stderr` file)
- \[x] `cargo test` passes locally
- \[x] Executed `cargo dev update_lints`
- \[x] Added lint documentation
- \[x] Run `cargo dev fmt`

`dogfood` found one true positive (see #9509) and no false positives.

`lintcheck` found no (true or false) positives, even when running on an extended set of crates.

---

changelog: new lint [`collection_is_never_read`]
[#10415](https://github.com/rust-lang/rust-clippy/pull/10415)
<!-- changelog_checked -->
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions