1
Fork 0

Move parse_or_use_outer_attributes out of parse_expr_prefix_range.

This eliminates another `Option<AttrWrapper>` argument and changes one
obscure error message.
This commit is contained in:
Nicholas Nethercote 2024-06-19 15:37:31 +10:00
parent 802779f77d
commit aaa220e875
5 changed files with 25 additions and 15 deletions

View file

@ -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,
}