We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Parser::parse_nonterminal
1 parent 9e6879f commit f9235dbCopy full SHA for f9235db
compiler/rustc_parse/src/parser/nonterminal.rs
@@ -95,7 +95,9 @@ impl<'a> Parser<'a> {
95
}
96
97
98
- /// 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
99
+ /// site.
100
+ #[inline]
101
pub fn parse_nonterminal(&mut self, kind: NonterminalKind) -> PResult<'a, NtOrTt> {
102
// Any `Nonterminal` which stores its tokens (currently `NtItem` and `NtExpr`)
103
// needs to have them force-captured here.
0 commit comments