1
Fork 0

Add parsing for builtin # in expression and item context

This commit is contained in:
est31 2023-01-19 10:24:17 +01:00
parent 4b94c23219
commit 59ecbd2cea
8 changed files with 96 additions and 1 deletions

View file

@ -2644,3 +2644,18 @@ pub(crate) struct MalformedCfgAttr {
pub span: Span,
pub sugg: &'static str,
}
#[derive(Diagnostic)]
#[diag(parse_unknown_builtin_construct)]
pub(crate) struct UnknownBuiltinConstruct {
#[primary_span]
pub span: Span,
pub name: Symbol,
}
#[derive(Diagnostic)]
#[diag(parse_expected_builtin_ident)]
pub(crate) struct ExpectedBuiltinIdent {
#[primary_span]
pub span: Span,
}