about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorDaniel Keep <daniel.keep@gmail.com>2016-04-25 02:04:01 +1000
committerAlex Burka <alex@alexburka.com>2017-04-15 19:06:19 +0000
commita2489495d909c43cfbefaeb79db6a77b13908257 (patch)
treedbd1690433ffb36b6bad7a56c3923e9313f0529a /src/libsyntax/parse
parentae23e65eb8f207d0c9be82e7f2043d98a32d4f57 (diff)
downloadrust-a2489495d909c43cfbefaeb79db6a77b13908257.tar.gz
rust-a2489495d909c43cfbefaeb79db6a77b13908257.zip
Implementation of the `vis` macro matcher.
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/token.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs
index 74aa3984a9a..513aa866043 100644
--- a/src/libsyntax/parse/token.rs
+++ b/src/libsyntax/parse/token.rs
@@ -371,6 +371,7 @@ pub enum Nonterminal {
     NtGenerics(ast::Generics),
     NtWhereClause(ast::WhereClause),
     NtArg(ast::Arg),
+    NtVis(ast::Visibility),
 }
 
 impl fmt::Debug for Nonterminal {
@@ -392,6 +393,7 @@ impl fmt::Debug for Nonterminal {
             NtGenerics(..) => f.pad("NtGenerics(..)"),
             NtWhereClause(..) => f.pad("NtWhereClause(..)"),
             NtArg(..) => f.pad("NtArg(..)"),
+            NtVis(..) => f.pad("NtVis(..)"),
         }
     }
 }