about summary refs log tree commit diff
path: root/compiler/rustc_parse/messages.ftl
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2025-03-01 22:27:16 +0000
committerEsteban Küber <esteban@kuber.com.ar>2025-08-04 18:06:18 +0000
commit2db126d651b6803c9b37fd021376ce6e5dd5a09e (patch)
tree9f0c09d8434dea09bcd6d9d8e0d2188f55ae9e3e /compiler/rustc_parse/messages.ftl
parente5e79f8bd428d0b8d26e8240d718b134ef297459 (diff)
downloadrust-2db126d651b6803c9b37fd021376ce6e5dd5a09e.tar.gz
rust-2db126d651b6803c9b37fd021376ce6e5dd5a09e.zip
Include whitespace in "remove `|`" suggestion and make it hidden
Diffstat (limited to 'compiler/rustc_parse/messages.ftl')
-rw-r--r--compiler/rustc_parse/messages.ftl4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_parse/messages.ftl b/compiler/rustc_parse/messages.ftl
index 859118a4ade..83c5ac449c2 100644
--- a/compiler/rustc_parse/messages.ftl
+++ b/compiler/rustc_parse/messages.ftl
@@ -851,8 +851,8 @@ parse_too_many_hashes = too many `#` symbols: raw strings may be delimited by up
 
 parse_too_short_hex_escape = numeric character escape is too short
 
-parse_trailing_vert_not_allowed = a trailing `|` is not allowed in an or-pattern
-    .suggestion = remove the `{$token}`
+parse_trailing_vert_not_allowed = a trailing `{$token}` is not allowed in an or-pattern
+parse_trailing_vert_not_allowed_suggestion = remove the `{$token}`
 
 parse_trait_alias_cannot_be_auto = trait aliases cannot be `auto`
 parse_trait_alias_cannot_be_const = trait aliases cannot be `const`