diff options
| author | bors <bors@rust-lang.org> | 2024-05-11 07:00:13 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-05-11 07:00:13 +0000 |
| commit | 2427bf911371d9e945d5658b9fc03e65b89ecf63 (patch) | |
| tree | 5969d2bffb75a23fa9e0f495de79cb0643af5979 /compiler/rustc_parse/src/errors.rs | |
| parent | 6f4c7d997e55d9b7786c59823653d03464f8148d (diff) | |
| parent | ce3daac283849eb600a294b9e5b4c384600c5b54 (diff) | |
| download | rust-2427bf911371d9e945d5658b9fc03e65b89ecf63.tar.gz rust-2427bf911371d9e945d5658b9fc03e65b89ecf63.zip | |
Auto merge of #3597 - rust-lang:rustup-2024-05-11, r=RalfJung
Automatic Rustup
Diffstat (limited to 'compiler/rustc_parse/src/errors.rs')
| -rw-r--r-- | compiler/rustc_parse/src/errors.rs | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/compiler/rustc_parse/src/errors.rs b/compiler/rustc_parse/src/errors.rs index d06f03a7c17..2f68a299f26 100644 --- a/compiler/rustc_parse/src/errors.rs +++ b/compiler/rustc_parse/src/errors.rs @@ -978,21 +978,13 @@ pub(crate) struct InvalidMetaItem { #[primary_span] pub span: Span, pub token: Token, -} - -#[derive(Diagnostic)] -#[diag(parse_invalid_meta_item_unquoted_ident)] -pub(crate) struct InvalidMetaItemUnquotedIdent { - #[primary_span] - pub span: Span, - pub token: Token, #[subdiagnostic] - pub sugg: InvalidMetaItemSuggQuoteIdent, + pub quote_ident_sugg: Option<InvalidMetaItemQuoteIdentSugg>, } #[derive(Subdiagnostic)] -#[multipart_suggestion(parse_suggestion, applicability = "machine-applicable")] -pub(crate) struct InvalidMetaItemSuggQuoteIdent { +#[multipart_suggestion(parse_quote_ident_sugg, applicability = "machine-applicable")] +pub(crate) struct InvalidMetaItemQuoteIdentSugg { #[suggestion_part(code = "\"")] pub before: Span, #[suggestion_part(code = "\"")] |
