diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-04-18 20:18:13 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-04-02 16:07:02 +1100 |
| commit | bb495d6d3e6dae294f08162097bd85f904e9f90b (patch) | |
| tree | 3c2779808f664b964e1c1a8c2dde2cfcb62b8328 /compiler/rustc_builtin_macros/src | |
| parent | 70dab5a27c03a5637cc1d4ba36a5139760d25e38 (diff) | |
| download | rust-bb495d6d3e6dae294f08162097bd85f904e9f90b.tar.gz rust-bb495d6d3e6dae294f08162097bd85f904e9f90b.zip | |
Remove `NtBlock`, `Nonterminal`, and `TokenKind::Interpolated`.
`NtBlock` is the last remaining variant of `Nonterminal`, so once it is gone then `Nonterminal` can be removed as well.
Diffstat (limited to 'compiler/rustc_builtin_macros/src')
| -rw-r--r-- | compiler/rustc_builtin_macros/src/cfg_eval.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_builtin_macros/src/cfg_eval.rs b/compiler/rustc_builtin_macros/src/cfg_eval.rs index b3ba9073118..ea0bbd0e31a 100644 --- a/compiler/rustc_builtin_macros/src/cfg_eval.rs +++ b/compiler/rustc_builtin_macros/src/cfg_eval.rs @@ -92,11 +92,11 @@ impl CfgEval<'_> { // the location of `#[cfg]` and `#[cfg_attr]` in the token stream. The tokenization // process is lossless, so this process is invisible to proc-macros. - // 'Flatten' all nonterminals (i.e. `TokenKind::Interpolated`) + // 'Flatten' all nonterminals (i.e. `TokenKind::Nt{Ident,Lifetime}`) // to `None`-delimited groups containing the corresponding tokens. This // is normally delayed until the proc-macro server actually needs to - // provide a `TokenKind::Interpolated` to a proc-macro. We do this earlier, - // so that we can handle cases like: + // provide tokens to a proc-macro. We do this earlier, so that we can + // handle cases like: // // ```rust // #[cfg_eval] #[cfg] $item |
