Address comments
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user