rust/clippy_utils/src
bors 4d686196b9 Auto merge of #6863 - Jarcho:wild_enum_match, r=llogiq
`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`
2021-03-18 10:39:28 +00:00
..
ast_utils Merge commit '928e72dd10749875cbd412f74bfbfd7765dbcd8a' into clippyup 2021-02-25 11:25:22 +01:00
ast_utils.rs Merge commit '928e72dd10749875cbd412f74bfbfd7765dbcd8a' into clippyup 2021-02-25 11:25:22 +01:00
attrs.rs Merge commit '928e72dd10749875cbd412f74bfbfd7765dbcd8a' into clippyup 2021-02-25 11:25:22 +01:00
camel_case.rs Add version = "Two" to rustfmt.toml 2021-03-01 16:17:33 -06:00
comparisons.rs Merge commit '928e72dd10749875cbd412f74bfbfd7765dbcd8a' into clippyup 2021-02-25 11:25:22 +01:00
consts.rs Merge commit '928e72dd10749875cbd412f74bfbfd7765dbcd8a' into clippyup 2021-02-25 11:25:22 +01:00
diagnostics.rs Do not show docs link when lint doesn't start with "clippy::" 2021-03-15 05:40:21 -04:00
eager_or_lazy.rs Move some utils to ty_utils 2021-03-15 13:44:09 -05:00
higher.rs Merge commit '928e72dd10749875cbd412f74bfbfd7765dbcd8a' into clippyup 2021-02-25 11:25:22 +01:00
hir_utils.rs Move some utils to clippy_utils::source module 2021-03-15 15:34:15 -05:00
lib.rs Auto merge of #6863 - Jarcho:wild_enum_match, r=llogiq 2021-03-18 10:39:28 +00:00
numeric_literal.rs Merge commit '928e72dd10749875cbd412f74bfbfd7765dbcd8a' into clippyup 2021-02-25 11:25:22 +01:00
paths.rs mem_replace_with_default: use diagnostic items intead of paths 2021-03-12 13:03:07 -08:00
ptr.rs Move some utils to clippy_utils::source module 2021-03-15 15:34:15 -05:00
qualify_min_const_fn.rs Switch to changing cp_non_overlap in tform 2021-03-09 16:54:14 +00:00
source.rs Move some utils to clippy_utils::source module 2021-03-15 15:34:15 -05:00
sugg.rs Move some utils to clippy_utils::source module 2021-03-15 15:34:15 -05:00
sym_helper.rs Merge commit '928e72dd10749875cbd412f74bfbfd7765dbcd8a' into clippyup 2021-02-25 11:25:22 +01:00
ty.rs Move some utils to ty_utils 2021-03-15 13:44:09 -05:00
usage.rs Merge commit '928e72dd10749875cbd412f74bfbfd7765dbcd8a' into clippyup 2021-02-25 11:25:22 +01:00
visitors.rs Merge commit '928e72dd10749875cbd412f74bfbfd7765dbcd8a' into clippyup 2021-02-25 11:25:22 +01:00