Skip to content

Commit f9235db

Browse files
committed
Inline Parser::parse_nonterminal.
1 parent 9e6879f commit f9235db

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

compiler/rustc_parse/src/parser/nonterminal.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ impl<'a> Parser<'a> {
9595
}
9696
}
9797

98-
/// Parse a non-terminal (e.g. MBE `:pat` or `:ident`).
98+
/// Parse a non-terminal (e.g. MBE `:pat` or `:ident`). Inlined because there is only one call
99+
/// site.
100+
#[inline]
99101
pub fn parse_nonterminal(&mut self, kind: NonterminalKind) -> PResult<'a, NtOrTt> {
100102
// Any `Nonterminal` which stores its tokens (currently `NtItem` and `NtExpr`)
101103
// needs to have them force-captured here.

0 commit comments

Comments
 (0)