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:
committed by
Matt Peterson
parent
03a51019a4
commit
e12b87096a
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user