Inline Parser::parse_nonterminal
.
This commit is contained in:
parent
9e6879fdba
commit
f9235db37e
1 changed files with 3 additions and 1 deletions
|
@ -95,7 +95,9 @@ impl<'a> Parser<'a> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Parse a non-terminal (e.g. MBE `:pat` or `:ident`).
|
/// Parse a non-terminal (e.g. MBE `:pat` or `:ident`). Inlined because there is only one call
|
||||||
|
/// site.
|
||||||
|
#[inline]
|
||||||
pub fn parse_nonterminal(&mut self, kind: NonterminalKind) -> PResult<'a, NtOrTt> {
|
pub fn parse_nonterminal(&mut self, kind: NonterminalKind) -> PResult<'a, NtOrTt> {
|
||||||
// Any `Nonterminal` which stores its tokens (currently `NtItem` and `NtExpr`)
|
// Any `Nonterminal` which stores its tokens (currently `NtItem` and `NtExpr`)
|
||||||
// needs to have them force-captured here.
|
// needs to have them force-captured here.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue