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.
This commit is contained in:
Esteban Küber
2017-11-21 08:03:02 -08:00
parent 7c0387e36a
commit c82e9e8e1e
19 changed files with 75 additions and 283 deletions

View File

@@ -1947,8 +1947,7 @@ impl<'a> Resolver<'a> {
}
}
ItemKind::ExternCrate(_) | ItemKind::MacroDef(..) | ItemKind::GlobalAsm(_) |
ItemKind::Placeholder => {
ItemKind::ExternCrate(_) | ItemKind::MacroDef(..) | ItemKind::GlobalAsm(_) => {
// do nothing, these are just around to be encoded
}