Enforce that raw lifetime identifiers must be valid raw identifiers
This commit is contained in:
parent
1e4f10ba64
commit
9785c7cf94
5 changed files with 72 additions and 4 deletions
|
@ -2018,6 +2018,14 @@ pub(crate) struct CannotBeRawIdent {
|
|||
pub ident: Symbol,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(parse_cannot_be_raw_lifetime)]
|
||||
pub(crate) struct CannotBeRawLifetime {
|
||||
#[primary_span]
|
||||
pub span: Span,
|
||||
pub ident: Symbol,
|
||||
}
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(parse_keyword_lifetime)]
|
||||
pub(crate) struct KeywordLifetime {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue