diff options
| author | Michael Goulet <michael@errs.io> | 2024-10-30 14:45:17 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-10-30 14:45:22 +0000 |
| commit | 9785c7cf94f5e30742f886764f2d25b6a4da66e8 (patch) | |
| tree | d3b2f34b5bf6097816390fa8ce319dd14218c44e /compiler/rustc_parse/src/errors.rs | |
| parent | 1e4f10ba6476e48a42a79b9f846a2d9366525b9e (diff) | |
| download | rust-9785c7cf94f5e30742f886764f2d25b6a4da66e8.tar.gz rust-9785c7cf94f5e30742f886764f2d25b6a4da66e8.zip | |
Enforce that raw lifetime identifiers must be valid raw identifiers
Diffstat (limited to 'compiler/rustc_parse/src/errors.rs')
| -rw-r--r-- | compiler/rustc_parse/src/errors.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/compiler/rustc_parse/src/errors.rs b/compiler/rustc_parse/src/errors.rs index fdd500e90f8..7ec4ad6dc35 100644 --- a/compiler/rustc_parse/src/errors.rs +++ b/compiler/rustc_parse/src/errors.rs @@ -2019,6 +2019,14 @@ pub(crate) struct CannotBeRawIdent { } #[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 { #[primary_span] |
