about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorReese Williams <reese@reesew.io>2021-01-20 21:49:11 -0500
committerReese Williams <reese@reesew.io>2021-01-20 23:06:19 -0500
commit8a83c8f64f717f7cf569f589b42c6535591f8854 (patch)
tree37017ad48316cd09df1fca14669b834e755cf552 /src/test/codegen/src-hash-algorithm
parent058a71016553f267ae80b90276ef79956457d51a (diff)
downloadrust-8a83c8f64f717f7cf569f589b42c6535591f8854.tar.gz
rust-8a83c8f64f717f7cf569f589b42c6535591f8854.zip
Improve suggestion for tuple struct pattern matching errors.
Currently, when a user uses a struct pattern to pattern match on
a tuple struct, the errors we emit generally suggest adding fields
using their field names, which are numbers. However, numbers are
not valid identifiers, so the suggestions, which use the shorthand
notation, are not valid syntax. This commit changes those errors
to suggest using the actual tuple struct pattern syntax instead,
which is a more actionable suggestion.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions