This lint does more harm than good: in its description, it proposes to rewrite `match` on `Vec<_>` indexes or slices by a version which cannot panic but masks the failure by choosing the default variant. The `clippy::indexing_slicing` restriction lint covers those cases more safely, by suggesting to use a non-panicking version to retrieve the value from the container, without suggesting to fallback to the default success variant in case of failure. This PR is an (opposite) alternative to #14208 (which will add a suggestion to the lint matching the lint description). Discussion on both PRs can be found [on Zulip](https://rust-lang.zulipchat.com/#narrow/channel/257328-clippy/topic/Suggestions.20that.20suppress.20panics). changelog: [`match_on_vec_items`]: deprecate lint |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||
| README.md | ||