1
Fork 0

Migrate pattern bindings with variant name lint

This commit is contained in:
TheOddGarlic 2022-08-29 10:06:50 +03:00 committed by mejrs
parent 6f82a00aa1
commit e1c5073c07
3 changed files with 24 additions and 23 deletions

View file

@ -233,3 +233,7 @@ mir_build_trailing_irrefutable_let_patterns = trailing irrefutable {$count ->
[one] it
*[other] them
} into the body
mir_build_bindings_with_variant_name =
pattern binding `{$ident}` is named the same as one of the variants of the type `{$ty_path}`
.suggestion = to match on the variant, qualify the path