about summary refs log tree commit diff
path: root/src/libsyntax/ast.rs
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2017-11-21 08:03:02 -0800
committerEsteban Küber <esteban@kuber.com.ar>2017-11-24 07:34:32 -0800
commitc82e9e8e1e634250b901b69808f65fbe5f3312c3 (patch)
treee84815f5482ca3dd0ed07b58198a51f2fc1ef8ef /src/libsyntax/ast.rs
parent7c0387e36a1dab95492de61a2f26262a4526c286 (diff)
downloadrust-c82e9e8e1e634250b901b69808f65fbe5f3312c3.tar.gz
rust-c82e9e8e1e634250b901b69808f65fbe5f3312c3.zip
Do not attemt to continue parsing after `pub ident`
Try to identify the following code in order to provide better
diagnostics, but return the error to bail out early during the parse.
Diffstat (limited to 'src/libsyntax/ast.rs')
-rw-r--r--src/libsyntax/ast.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs
index a09cfbec879..ad9d5865120 100644
--- a/src/libsyntax/ast.rs
+++ b/src/libsyntax/ast.rs
@@ -1977,7 +1977,6 @@ pub enum ItemKind {
 
     /// A macro definition.
     MacroDef(MacroDef),
-    Placeholder,
 }
 
 impl ItemKind {
@@ -1999,7 +1998,6 @@ impl ItemKind {
             ItemKind::Mac(..) |
             ItemKind::MacroDef(..) |
             ItemKind::Impl(..) |
-            ItemKind::Placeholder |
             ItemKind::AutoImpl(..) => "item"
         }
     }