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/parser/mod.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/parser/mod.rs')
| -rw-r--r-- | compiler/rustc_parse/src/parser/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_parse/src/parser/mod.rs b/compiler/rustc_parse/src/parser/mod.rs index ca9671f90fe..3b3c2e6137d 100644 --- a/compiler/rustc_parse/src/parser/mod.rs +++ b/compiler/rustc_parse/src/parser/mod.rs @@ -1748,6 +1748,7 @@ pub enum ParseNtResult { Lifetime(Ident, IdentIsRaw), Pat(P<ast::Pat>, NtPatKind), Ty(P<ast::Ty>), + Meta(P<ast::AttrItem>), Vis(P<ast::Visibility>), /// This variant will eventually be removed, along with `Token::Interpolate`. |
