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
..
2021-02-26 19:13:47 -06:00
2021-03-08 23:03:45 -06:00
2021-02-10 16:15:29 +09:00
2021-02-10 16:15:29 +09:00
2021-02-10 16:15:29 +09:00
2021-03-08 13:15:13 -06:00
2021-03-08 13:15:13 -06:00
2021-03-16 19:56:47 +09:00
2021-03-16 19:56:47 +09:00
2021-02-27 14:16:01 +09:00
2021-02-25 22:03:11 +01:00
2021-02-10 11:57:28 +01:00
2021-02-10 11:57:28 +01:00
2021-02-10 11:57:28 +01:00
2021-03-03 17:32:49 +01:00
2021-03-03 17:32:49 +01:00
2021-02-06 00:10:52 +09:00