rust/compiler/rustc_parse
Reese Williams 8a83c8f64f 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.
2021-01-20 23:06:19 -05:00
..
src Improve suggestion for tuple struct pattern matching errors. 2021-01-20 23:06:19 -05:00
Cargo.toml mv compiler to compiler/ 2020-08-30 18:45:07 +03:00