rust/tests
bors 292e313259 Auto merge of #9451 - kraktus:manual_filter2, r=dswij
Add `manual_filter` lint for `Option`

Share much of its implementation with `manual_map` and should greatly benefit from its previous feedback.
I'm sure it's possible to even more refactor both and would gladly take input on that as well as any clippy idiomatic usage, since this is my first lint addition.

I've added the lint to the complexity section for now, I don't know if every new lint needs to go in nursery first.

The matching could be expanded to more than `Some(<value>)` to lint on arbitrary struct matching inside the `Some` but I've left it like it was for `manual_map` for now. `needless_match::pat_same_as_expr` provides a more generic match example.

close https://github.com/rust-lang/rust-clippy/issues/8822

changelog: Add lint [`manual_filter`] for `Option`
2022-10-08 15:58:51 +00:00
..
test_utils Move/rename lazy::Sync{OnceCell,Lazy} to sync::{Once,Lazy}Lock 2022-06-16 19:54:42 +04:00
ui Auto merge of #9451 - kraktus:manual_filter2, r=dswij 2022-10-08 15:58:51 +00:00
ui-cargo Merge remote-tracking branch 'upstream/master' into rustup 2022-10-06 09:19:29 +02:00
ui-internal Merge remote-tracking branch 'upstream/master' into rustup 2022-10-06 09:19:29 +02:00
ui-toml Merge remote-tracking branch 'upstream/master' into rustup 2022-10-06 09:19:29 +02:00
workspace_test
check-fmt.rs Merge commit 'f51aade56f93175dde89177a92e3669ebd8e7592' into clippyup 2022-08-31 09:24:45 -04:00
clippy.toml
compile-test.rs a few more core lint fixes 2022-09-23 13:55:30 -04:00
dogfood.rs Merge commit 'f51aade56f93175dde89177a92e3669ebd8e7592' into clippyup 2022-08-31 09:24:45 -04:00
integration.rs Fix panic when displaying the backtrace of failing integration tests 2022-09-25 09:15:29 -04:00
lint_message_convention.rs a few more core lint fixes 2022-09-23 13:55:30 -04:00
missing-test-files.rs a few more core lint fixes 2022-09-23 13:55:30 -04:00
versioncheck.rs a few more core lint fixes 2022-09-23 13:55:30 -04:00
workspace.rs Merge commit 'f51aade56f93175dde89177a92e3669ebd8e7592' into clippyup 2022-08-31 09:24:45 -04:00