diff options
| author | bors <bors@rust-lang.org> | 2024-05-10 16:04:26 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-05-10 16:04:26 +0000 |
| commit | 6a19a87097fbf430d0fe09e15d9266a990c1e0f6 (patch) | |
| tree | 21f4ffc363e5b92a271f615da28603b8f4f2468b /compiler/rustc_parse/src/errors.rs | |
| parent | 66f877007de6d575357ce8a0a85743f6cce3c06d (diff) | |
| parent | 9a9ec90567f20a545fdb3366c7721d6472786b91 (diff) | |
| download | rust-6a19a87097fbf430d0fe09e15d9266a990c1e0f6.tar.gz rust-6a19a87097fbf430d0fe09e15d9266a990c1e0f6.zip | |
Auto merge of #124972 - matthiaskrgr:rollup-3fablim, r=matthiaskrgr
Rollup of 5 pull requests Successful merges: - #124615 (coverage: Further simplify extraction of mapping info from MIR) - #124778 (Fix parse error message for meta items) - #124797 (Refactor float `Primitive`s to a separate `Float` type) - #124888 (Migrate `run-make/rustdoc-output-path` to rmake) - #124957 (Make `Ty::builtin_deref` just return a `Ty`) r? `@ghost` `@rustbot` modify labels: rollup
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 = "\"")] |
