diff options
| author | bors <bors@rust-lang.org> | 2023-08-04 05:44:54 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-08-04 05:44:54 +0000 |
| commit | 15c05fe25f48ddd2ee0efdc1ac9d24af473769b4 (patch) | |
| tree | 150c1c2779d9b093507486e92ac3ea013bc6409b /compiler/rustc_parse/src/errors.rs | |
| parent | f8d75a481392b59b979350d441eed2329e68e808 (diff) | |
| parent | 1a803a0c790ade534dec44c17816eb389d7dd8ed (diff) | |
| download | rust-15c05fe25f48ddd2ee0efdc1ac9d24af473769b4.tar.gz rust-15c05fe25f48ddd2ee0efdc1ac9d24af473769b4.zip | |
Auto merge of #3012 - rust-lang:rustup-2023-08-04, r=oli-obk
Automatic sync from rustc
Diffstat (limited to 'compiler/rustc_parse/src/errors.rs')
| -rw-r--r-- | compiler/rustc_parse/src/errors.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/compiler/rustc_parse/src/errors.rs b/compiler/rustc_parse/src/errors.rs index 3184ca777ce..26f38c9156a 100644 --- a/compiler/rustc_parse/src/errors.rs +++ b/compiler/rustc_parse/src/errors.rs @@ -1435,6 +1435,13 @@ pub(crate) struct AsyncBlockIn2015 { } #[derive(Diagnostic)] +#[diag(parse_async_move_block_in_2015)] +pub(crate) struct AsyncMoveBlockIn2015 { + #[primary_span] + pub span: Span, +} + +#[derive(Diagnostic)] #[diag(parse_self_argument_pointer)] pub(crate) struct SelfArgumentPointer { #[primary_span] @@ -1809,6 +1816,12 @@ pub struct UnknownPrefix<'a> { } #[derive(Subdiagnostic)] +#[note(parse_macro_expands_to_adt_field)] +pub struct MacroExpandsToAdtField<'a> { + pub adt_ty: &'a str, +} + +#[derive(Subdiagnostic)] pub enum UnknownPrefixSugg { #[suggestion( parse_suggestion_br, |
