diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-02-26 02:07:14 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-26 02:07:14 +0100 |
| commit | 7603c2cfba4c146aa71beb495085eaa01ff4b3d4 (patch) | |
| tree | 719815aae6382c886bfd755e70d603ca6cf3d00a /src/libsyntax/token.rs | |
| parent | d050b00759b206458ba23a863d6a985198ee5588 (diff) | |
| parent | d134385823525255546deaa930af2d5b1eada0df (diff) | |
Rollup merge of #69423 - petrochenkov:nont, r=Centril
syntax: Remove `Nt(Impl,Trait,Foreign)Item` Follow-up to https://github.com/rust-lang/rust/pull/69366. r? @Centril
Diffstat (limited to 'src/libsyntax/token.rs')
| -rw-r--r-- | src/libsyntax/token.rs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/libsyntax/token.rs b/src/libsyntax/token.rs index 6eeee498815..52bf50604fb 100644 --- a/src/libsyntax/token.rs +++ b/src/libsyntax/token.rs @@ -712,12 +712,6 @@ pub enum Nonterminal { NtPath(ast::Path), NtVis(ast::Visibility), NtTT(TokenTree), - // Used only for passing items to proc macro attributes (they are not - // strictly necessary for that, `Annotatable` can be converted into - // tokens directly, but doing that naively regresses pretty-printing). - NtTraitItem(P<ast::AssocItem>), - NtImplItem(P<ast::AssocItem>), - NtForeignItem(P<ast::ForeignItem>), } // `Nonterminal` is used a lot. Make sure it doesn't unintentionally get bigger. @@ -755,9 +749,6 @@ impl fmt::Debug for Nonterminal { NtMeta(..) => f.pad("NtMeta(..)"), NtPath(..) => f.pad("NtPath(..)"), NtTT(..) => f.pad("NtTT(..)"), - NtImplItem(..) => f.pad("NtImplItem(..)"), - NtTraitItem(..) => f.pad("NtTraitItem(..)"), - NtForeignItem(..) => f.pad("NtForeignItem(..)"), NtVis(..) => f.pad("NtVis(..)"), NtLifetime(..) => f.pad("NtLifetime(..)"), } |
