mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-22 02:53:20 +00:00
4d686196b9
`match_wildcard` improvements fixes: #6604 fixes: #5733 fixes: #6862 #5733 is only fixed in the normal case, if different paths are used for the variants then the same problem will occur. It's cause by `def_path_str` returning an utterly useless result. I haven't dug into why yet. For #6604 there should be some discussion before accepting this. It's easy enough to change the message rather than disable the lint for `Option` and `Result`. changelog: Attempt to find a common path prefix for `match_wildcard_for_single_variants` and `wildcard_enum_match_arm` changelog: Don't lint op `Option` and `Result` for `match_wildcard_for_single_variants` and `wildcard_enum_match_arm` changelog: Consider `or` patterns and `Self` prefix for `match_wildcard_for_single_variants` and `wildcard_enum_match_arm` |
||
---|---|---|
.. | ||
ast_utils | ||
ast_utils.rs | ||
attrs.rs | ||
camel_case.rs | ||
comparisons.rs | ||
consts.rs | ||
diagnostics.rs | ||
eager_or_lazy.rs | ||
higher.rs | ||
hir_utils.rs | ||
lib.rs | ||
numeric_literal.rs | ||
paths.rs | ||
ptr.rs | ||
qualify_min_const_fn.rs | ||
source.rs | ||
sugg.rs | ||
sym_helper.rs | ||
ty.rs | ||
usage.rs | ||
visitors.rs |