1
Fork 0

parser: more friendly hints for handling async move in the 2015 edition

This commit is contained in:
bohan 2023-07-30 15:49:33 +08:00
parent d9feb02e8d
commit 8e32dade71
5 changed files with 32 additions and 4 deletions

View file

@ -1434,6 +1434,13 @@ pub(crate) struct AsyncBlockIn2015 {
pub span: Span,
}
#[derive(Diagnostic)]
#[diag(parse_async_move_block_in_2015)]
pub(crate) struct AsyncMoveBlockIn2015 {
#[primary_span]
pub span: Span,
}
#[derive(Diagnostic)]
#[diag(parse_self_argument_pointer)]
pub(crate) struct SelfArgumentPointer {