diff options
| author | bors <bors@rust-lang.org> | 2024-11-09 19:52:46 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-11-09 19:52:46 +0000 |
| commit | 4adafcf40aa6064d2bbcb44bc1a50b3b1e86e5e0 (patch) | |
| tree | a0da7a51a5ccaeda83b15d2b7f866d08dcb4d8cd /compiler/rustc_parse/src/errors.rs | |
| parent | b026d85107d4c33e7d2571c70115a29a5d2a4cf5 (diff) | |
| parent | 3aa1a247998c2fb4b13bdaf860ff132b78228510 (diff) | |
| download | rust-4adafcf40aa6064d2bbcb44bc1a50b3b1e86e5e0.tar.gz rust-4adafcf40aa6064d2bbcb44bc1a50b3b1e86e5e0.zip | |
Auto merge of #132815 - matthiaskrgr:rollup-nti992u, r=matthiaskrgr
Rollup of 7 pull requests Successful merges: - #132341 (Reject raw lifetime followed by `'`, like regular lifetimes do) - #132363 (Enforce that raw lifetimes must be valid raw identifiers) - #132744 (add regression test for #90781) - #132754 (Simplify the internal API for declaring command-line options) - #132772 (use `download-rustc="if-unchanged"` as a global default) - #132774 (Use lld with non-LLVM backends) - #132799 (Make `Ty::primitive_symbol` recognize `str`) r? `@ghost` `@rustbot` modify labels: rollup
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] |
