Address comments

This commit is contained in:
Vadim Petrochenkov
2018-07-06 23:18:38 +03:00
parent e3acb341b2
commit 7d142c1e53
8 changed files with 15 additions and 18 deletions

View File

@@ -6999,7 +6999,7 @@ impl<'a> Parser<'a> {
// Verify whether we have encountered a struct or method definition where the user forgot to
// add the `struct` or `fn` keyword after writing `pub`: `pub S {}`
if visibility.node.is_public() &&
if visibility.node.is_pub() &&
self.check_ident() &&
self.look_ahead(1, |t| *t != token::Not)
{