about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorrleungx <rleungx@gmail.com>2018-05-03 19:09:34 +0800
committerrleungx <rleungx@gmail.com>2018-05-03 19:12:39 +0800
commit390c3cee6a8e0c0550eb6213c0e7e5f74c4fbc31 (patch)
tree110c99e429502761762734846a6c91488a67ef46 /src/libsyntax/parse
parent698b956a9fca9688632d617dd6d73cae834237a3 (diff)
downloadrust-390c3cee6a8e0c0550eb6213c0e7e5f74c4fbc31.tar.gz
rust-390c3cee6a8e0c0550eb6213c0e7e5f74c4fbc31.zip
check if the token is a lifetime before parsing
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index 324cadc84e8..bbee03bb0d5 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -2042,7 +2042,7 @@ impl<'a> Parser<'a> {
         })
     }
 
-    fn check_lifetime(&mut self) -> bool {
+    pub fn check_lifetime(&mut self) -> bool {
         self.expected_tokens.push(TokenType::Lifetime);
         self.token.is_lifetime()
     }