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/src/errors.rs | |
| 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/src/errors.rs')
| -rw-r--r-- | compiler/rustc_parse/src/errors.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler/rustc_parse/src/errors.rs b/compiler/rustc_parse/src/errors.rs index 6c1fcbe06fc..f0ef1112f9e 100644 --- a/compiler/rustc_parse/src/errors.rs +++ b/compiler/rustc_parse/src/errors.rs @@ -2989,3 +2989,10 @@ pub(crate) struct ExprRArrowCall { #[suggestion(style = "short", applicability = "machine-applicable", code = ".")] pub span: Span, } + +#[derive(Diagnostic)] +#[diag(parse_dot_dot_range_attribute)] +pub(crate) struct DotDotRangeAttribute { + #[primary_span] + pub span: Span, +} |
