diff options
| author | clubby789 <jamie@hill-daniel.co.uk> | 2023-01-28 21:16:50 +0000 |
|---|---|---|
| committer | clubby789 <jamie@hill-daniel.co.uk> | 2023-01-28 21:57:35 +0000 |
| commit | c5688794e2c3bb94f93e37a4f77576ac0d86a14e (patch) | |
| tree | faa2e9aa0ab1e378cc6ee7be8b782515f802ad91 /compiler/rustc_error_messages | |
| parent | 4bfab39f9b466fa89f85c57a42c1e71a99c6aa4e (diff) | |
| download | rust-c5688794e2c3bb94f93e37a4f77576ac0d86a14e.tar.gz rust-c5688794e2c3bb94f93e37a4f77576ac0d86a14e.zip | |
Migrate some range parsing diagnostics
Diffstat (limited to 'compiler/rustc_error_messages')
| -rw-r--r-- | compiler/rustc_error_messages/locales/en-US/parse.ftl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/compiler/rustc_error_messages/locales/en-US/parse.ftl b/compiler/rustc_error_messages/locales/en-US/parse.ftl index a3e2002da78..1728ef70cba 100644 --- a/compiler/rustc_error_messages/locales/en-US/parse.ftl +++ b/compiler/rustc_error_messages/locales/en-US/parse.ftl @@ -199,6 +199,17 @@ parse_match_arm_body_without_braces = `match` arm body without braces } with a body .suggestion_use_comma_not_semicolon = use a comma to end a `match` arm expression +parse_inclusive_range_extra_equals = unexpected `=` after inclusive range + .suggestion_remove_eq = use `..=` instead + .note = inclusive ranges end with a single equals sign (`..=`) + +parse_inclusive_range_match_arrow = unexpected `=>` after open range + .suggestion_add_space = add a space between the pattern and `=>` + +parse_inclusive_range_no_end = inclusive range with no end + .suggestion_open_range = use `..` instead + .note = inclusive ranges must be bounded at the end (`..=b` or `a..=b`) + parse_struct_literal_not_allowed_here = struct literals are not allowed here .suggestion = surround the struct literal with parentheses |
