rust/tests
bors 41fa24cef8 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 -->
2023-03-07 13:35:07 +00:00
..
test_utils
ui Auto merge of #10415 - schubart:collection_is_never_read, r=llogiq 2023-03-07 13:35:07 +00:00
ui-cargo
ui-internal Emit unnecessary_def_path in source order. 2023-02-25 18:09:24 -05:00
ui-toml Fix array-size-threshold config deserialization error 2023-02-28 14:37:41 +00:00
workspace_test
check-fmt.rs
clippy.toml
compile-test.rs
dogfood.rs Run dogfood on all packages before failing 2023-02-28 09:49:54 -05:00
integration.rs
lint_message_convention.rs
missing-test-files.rs
versioncheck.rs
workspace.rs