about summary refs log tree commit diff
path: root/library/std/src/sys/unix/stack_overflow.rs
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 /library/std/src/sys/unix/stack_overflow.rs
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 'library/std/src/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions