replace parse_lifetime with expect_lifetime

made `parser::Parser::expect_lifetime` public, so it can be called from `macro_parser::parse_nt`
This commit is contained in:
Michael Hewson 2017-05-11 22:59:48 +00:00 committed by Matt Peterson
parent 03a51019a4
commit e12b87096a
2 changed files with 2 additions and 2 deletions

View file

@ -2031,7 +2031,7 @@ impl<'a> Parser<'a> {
}
/// Parse single lifetime 'a or panic.
fn expect_lifetime(&mut self) -> Lifetime {
pub fn expect_lifetime(&mut self) -> Lifetime {
match self.token {
token::Lifetime(ident) => {
let ident_span = self.span;