diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2018-08-12 20:15:59 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2018-08-15 00:05:55 +0300 |
| commit | 097c40cf6e1defc2fc49d521374254ee27f5f1fb (patch) | |
| tree | 9be9e40c39ef3c39f8e0bec5f7de31d69543b75a /src/libsyntax/parse/parser.rs | |
| parent | a5733050de780ae4d11e3a7af615df792fdf908e (diff) | |
| download | rust-097c40cf6e1defc2fc49d521374254ee27f5f1fb.tar.gz rust-097c40cf6e1defc2fc49d521374254ee27f5f1fb.zip | |
syntax: Enforce attribute grammar in the parser
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 0e45cacaf38..b1e1cdee2ee 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -825,7 +825,7 @@ impl<'a> Parser<'a> { /// /// This method will automatically add `tok` to `expected_tokens` if `tok` is not /// encountered. - fn check(&mut self, tok: &token::Token) -> bool { + crate fn check(&mut self, tok: &token::Token) -> bool { let is_present = self.token == *tok; if !is_present { self.expected_tokens.push(TokenType::Token(tok.clone())); } is_present |
