[...]
patterns are confusingly called "vector patterns" in error messages
#17765
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
This is very confusing because they only work with slices and arrays, and it's not rare to try to match on a
Vec
, drawing a false link between the pattern and theVec
type.They should be called "array patterns" or "slice patterns". (Tagging as easy because it should be a matter of
git grep 'vector pattern'
and fixing all the locations: it could probably be done viased
!)The text was updated successfully, but these errors were encountered: