diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-04-18 16:22:02 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-02-28 08:42:06 +1100 |
| commit | 7ea59e053bed52249ba8f42cbdbc7301312197e3 (patch) | |
| tree | a7552e6e474d5f21e2a57e7b61938e4618e55a0a /compiler/rustc_parse/src/errors.rs | |
| parent | ef1114a964bcb15ba5c60551f925d287eb153bb9 (diff) | |
| download | rust-7ea59e053bed52249ba8f42cbdbc7301312197e3.tar.gz rust-7ea59e053bed52249ba8f42cbdbc7301312197e3.zip | |
Remove `NtMeta`.
Note: there was an existing code path involving `Interpolated` in `MetaItem::from_tokens` that was dead. This commit transfers that to the new form, but puts an `unreachable!` call inside it.
Diffstat (limited to 'compiler/rustc_parse/src/errors.rs')
| -rw-r--r-- | compiler/rustc_parse/src/errors.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/errors.rs b/compiler/rustc_parse/src/errors.rs index 173c68b3a72..fc7a3323fc1 100644 --- a/compiler/rustc_parse/src/errors.rs +++ b/compiler/rustc_parse/src/errors.rs @@ -1024,7 +1024,7 @@ pub(crate) struct SuffixedLiteralInAttribute { pub(crate) struct InvalidMetaItem { #[primary_span] pub span: Span, - pub token: Token, + pub descr: String, #[subdiagnostic] pub quote_ident_sugg: Option<InvalidMetaItemQuoteIdentSugg>, } |
