diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-06-19 15:37:31 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-06-19 19:12:00 +1000 |
| commit | aaa220e8757d1d2bb3a7b4742db9e289c8454dc2 (patch) | |
| tree | 2eec7d6fe436be5faf45bfe15110d4039c780d0e /compiler/rustc_parse/messages.ftl | |
| parent | 802779f77ddaac18865e5e52e01c5e4d122e9090 (diff) | |
| download | rust-aaa220e8757d1d2bb3a7b4742db9e289c8454dc2.tar.gz rust-aaa220e8757d1d2bb3a7b4742db9e289c8454dc2.zip | |
Move `parse_or_use_outer_attributes` out of `parse_expr_prefix_range`.
This eliminates another `Option<AttrWrapper>` argument and changes one obscure error message.
Diffstat (limited to 'compiler/rustc_parse/messages.ftl')
| -rw-r--r-- | compiler/rustc_parse/messages.ftl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_parse/messages.ftl b/compiler/rustc_parse/messages.ftl index f678d11213c..efb9526eabc 100644 --- a/compiler/rustc_parse/messages.ftl +++ b/compiler/rustc_parse/messages.ftl @@ -133,6 +133,8 @@ parse_dot_dot_dot_for_remaining_fields = expected field pattern, found `{$token_ parse_dot_dot_dot_range_to_pattern_not_allowed = range-to patterns with `...` are not allowed .suggestion = use `..=` instead +parse_dot_dot_range_attribute = attributes are not allowed on range expressions starting with `..` + parse_dotdotdot = unexpected token: `...` .suggest_exclusive_range = use `..` for an exclusive range .suggest_inclusive_range = or `..=` for an inclusive range |
