1
Fork 0

Give a better error message on async use in edition 2015

This commit is contained in:
Santiago Pastorino 2025-02-21 17:24:46 -03:00
parent 2f48fcec63
commit 4e6407ab94
No known key found for this signature in database
GPG key ID: 8131A24E0C79EFAF
5 changed files with 38 additions and 8 deletions

View file

@ -1688,6 +1688,13 @@ pub(crate) struct AsyncMoveBlockIn2015 {
pub span: Span,
}
#[derive(Diagnostic)]
#[diag(parse_async_use_block_in_2015)]
pub(crate) struct AsyncUseBlockIn2015 {
#[primary_span]
pub span: Span,
}
#[derive(Diagnostic)]
#[diag(parse_async_bound_modifier_in_2015)]
pub(crate) struct AsyncBoundModifierIn2015 {