Jason Newcomb
|
63f6a79bf8
|
Don't lint various match lints when expanded by a proc-macro
|
2022-04-08 16:51:40 -04:00 |
|
J-ZhengLi
|
4b128624ed
|
fix #8551, add test cases, and some code improvement
|
2022-03-17 23:06:31 +08:00 |
|
J-ZhengLi
|
ec9116412a
|
rename lint to needless_match
and change its lint group to "complexity"
|
2022-03-10 09:44:25 +08:00 |
|
J-ZhengLi
|
db3fcf8df7
|
add basic code to check nop match blocks
modify `manual_map_option` uitest because one test case has confliction.
|
2022-03-07 18:12:35 +08:00 |
|
J-ZhengLi
|
30fb8229e1
|
add tests, add base bone for the new lint
|
2022-02-25 18:08:52 +08:00 |
|
Jason Newcomb
|
78345b4d09
|
Clarify cfg detection process in matches.rs
|
2022-02-18 15:41:46 -05:00 |
|
Jason Newcomb
|
8ce2d46cac
|
Check for cfg attrubutes before linting match expressions
|
2022-02-17 14:04:10 -05:00 |
|
Jason Newcomb
|
9bfcbf4f02
|
Remove some redundant checks in various matches lints
|
2022-02-17 10:48:24 -05:00 |
|
Jason Newcomb
|
c65894cf1a
|
Split out wild_in_or_pats
|
2022-02-07 13:00:19 -05:00 |
|
Jason Newcomb
|
aa3af30dee
|
Split out rest_pat_in_fully_bound_struct
|
2022-02-07 12:57:02 -05:00 |
|
Jason Newcomb
|
6477923323
|
Split out infalliable_detructuring_match
|
2022-02-07 12:28:57 -05:00 |
|
Jason Newcomb
|
fb1093c561
|
Split out match_ref_pats
|
2022-02-07 12:22:27 -05:00 |
|
Jason Newcomb
|
1da26c8a70
|
Split out match_single_binding
|
2022-02-07 12:22:27 -05:00 |
|
Jason Newcomb
|
bccf06f601
|
Split out match_as_ref
|
2022-02-07 12:22:26 -05:00 |
|
Jason Newcomb
|
75923dff5b
|
Split out wildcard_enum_match_arm and match_wildcard_for_single_variants
|
2022-02-07 12:22:26 -05:00 |
|
Jason Newcomb
|
dc75695e97
|
Split out match_wild_err_arm
|
2022-02-07 12:22:26 -05:00 |
|
Jason Newcomb
|
2a70439ef0
|
Split out overlapping_arms
|
2022-02-07 12:22:26 -05:00 |
|
Jason Newcomb
|
f3dd909e0f
|
Split out match_bool
|
2022-02-07 12:22:26 -05:00 |
|
Jason Newcomb
|
f23dc16e1d
|
Split out single_match
|
2022-02-07 12:22:26 -05:00 |
|
Jason Newcomb
|
f2b6ed7cb2
|
Split out redundant_pattern_match
|
2022-02-07 12:22:24 -05:00 |
|
Jason Newcomb
|
64548250e7
|
Split out match_same_arms
|
2022-02-07 12:20:18 -05:00 |
|
Jason Newcomb
|
e41a6fc042
|
Split out match_like_matches_macro
|
2022-02-07 12:20:18 -05:00 |
|
Jason Newcomb
|
f7be9564e5
|
Move matches.rs to mod.rs
|
2022-02-07 12:20:17 -05:00 |
|