diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2025-04-13 15:52:46 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-13 15:52:46 +0000 |
| commit | b90c80a766439ba12a74c5e6c6786b8d9c7e5e62 (patch) | |
| tree | 2061aad4fe38907302ce627b718660f530ddea1a /tests/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs | |
| parent | dbc07558ef60859f91511eef39f3430c32f80ff7 (diff) | |
| parent | 1da567b619d531184d558f5daafa4c30e8cd34eb (diff) | |
| download | rust-b90c80a766439ba12a74c5e6c6786b8d9c7e5e62.tar.gz rust-b90c80a766439ba12a74c5e6c6786b8d9c7e5e62.zip | |
Deprecate `match_on_vec_items` lint (#14217)
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
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions
