diff options
| author | Peter Jaszkowiak <p.jaszkow@gmail.com> | 2024-11-25 21:50:26 -0700 |
|---|---|---|
| committer | Peter Jaszkowiak <p.jaszkow@gmail.com> | 2024-11-25 22:29:14 -0700 |
| commit | 44f4f67f460a3b3c9bb34851d3d812fbdba81936 (patch) | |
| tree | 3cdb0d6a403ddb3a2f3c590da97863ea865ba2e1 /compiler/rustc_parse/messages.ftl | |
| parent | 7db7489f9bc274cb60c4956bfa56de0185eb1b9b (diff) | |
| download | rust-44f4f67f460a3b3c9bb34851d3d812fbdba81936.tar.gz rust-44f4f67f460a3b3c9bb34851d3d812fbdba81936.zip | |
fix confusing diagnostic for reserved `##`
Diffstat (limited to 'compiler/rustc_parse/messages.ftl')
| -rw-r--r-- | compiler/rustc_parse/messages.ftl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_parse/messages.ftl b/compiler/rustc_parse/messages.ftl index 8c4f669c332..b9a325eddd8 100644 --- a/compiler/rustc_parse/messages.ftl +++ b/compiler/rustc_parse/messages.ftl @@ -716,6 +716,10 @@ parse_require_colon_after_labeled_expression = labeled expression must be follow .label = the label .suggestion = add `:` after the label +parse_reserved_multihash = reserved multi-hash token is forbidden + .note = sequences of two or more # are reserved for future use since Rust 2024 + .suggestion_whitespace = consider inserting whitespace here + parse_reserved_string = invalid string literal .note = unprefixed guarded string literals are reserved for future use since Rust 2024 .suggestion_whitespace = consider inserting whitespace here |
