parser: more friendly hints for handling async move
in the 2015 edition
This commit is contained in:
parent
d9feb02e8d
commit
8e32dade71
5 changed files with 32 additions and 4 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue