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:
parent
03a51019a4
commit
e12b87096a
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue