summaryrefslogtreecommitdiff
path: root/compiler/rustc_error_messages
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-02-02 17:14:05 +0100
committerGitHub <noreply@github.com>2023-02-02 17:14:05 +0100
commite9c4e291c400314d331b977c80dcf456cd6f7977 (patch)
tree9a36177a9ab41f6d7b17da8a56af0aac5374152e /compiler/rustc_error_messages
parent8f47954742364b452716daff72bba976e18288e5 (diff)
parent4ab75de934935f59f243ab64a641e28aa89e6fcd (diff)
downloadrust-e9c4e291c400314d331b977c80dcf456cd6f7977.tar.gz
Rollup merge of #107493 - clubby789:range-fat-arrow-followup, r=estebank
Improve diagnostic for missing space in range pattern Improves the diagnostic in #107425 by turning it into a note explaining the parsing issue. r? `@compiler-errors`
Diffstat (limited to 'compiler/rustc_error_messages')
-rw-r--r--compiler/rustc_error_messages/locales/en-US/parse.ftl5
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/rustc_error_messages/locales/en-US/parse.ftl b/compiler/rustc_error_messages/locales/en-US/parse.ftl
index 6752f05b044..244eb41eb39 100644
--- a/compiler/rustc_error_messages/locales/en-US/parse.ftl
+++ b/compiler/rustc_error_messages/locales/en-US/parse.ftl
@@ -203,8 +203,9 @@ 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_match_arrow = unexpected `>` after inclusive range
+ .label = this is parsed as an inclusive range `..=`
+ .suggestion = add a space between the pattern and `=>`
parse_inclusive_range_no_end = inclusive range with no end
.suggestion_open_range = use `..` instead