diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2017-11-21 08:03:02 -0800 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2017-11-24 07:34:32 -0800 |
| commit | c82e9e8e1e634250b901b69808f65fbe5f3312c3 (patch) | |
| tree | e84815f5482ca3dd0ed07b58198a51f2fc1ef8ef /src/librustc_save_analysis/sig.rs | |
| parent | 7c0387e36a1dab95492de61a2f26262a4526c286 (diff) | |
| download | rust-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/librustc_save_analysis/sig.rs')
| -rw-r--r-- | src/librustc_save_analysis/sig.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/librustc_save_analysis/sig.rs b/src/librustc_save_analysis/sig.rs index e7cf5782290..b244876226c 100644 --- a/src/librustc_save_analysis/sig.rs +++ b/src/librustc_save_analysis/sig.rs @@ -548,7 +548,6 @@ impl Sig for ast::Item { // FIXME should implement this (e.g., pub use). ast::ItemKind::Use(_) => Err("import"), ast::ItemKind::Mac(..) | ast::ItemKind::MacroDef(_) => Err("Macro"), - ast::ItemKind::Placeholder => Err("placeholder"), } } } |
