Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Prevent
add_missing_match_arms
assist from ignoring existing v…
…ariants prefixed with `Self::` This is an ad hoc fix of rust-lang#4650 by making only the last identifier segment compared when the variant is prefixed, so that the comparison is not affected by differences in prefix, such as type names, type aliases, or `Self::`. (The appropriate fix would be to use `hir_ty::diagnostics::match_check`, as discussed in rust-lang#8493.) Closes rust-lang#4650.
- Loading branch information