Skip to content

Commit 3d052c9

Browse files
committed
format: inline one-liners related to parse_expr
1 parent 37a3b7c commit 3d052c9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/libsyntax/parse/parser.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3051,6 +3051,7 @@ impl<'a> Parser<'a> {
30513051
///
30523052
/// This parses an expression accounting for associativity and precedence of the operators in
30533053
/// the expression.
3054+
#[inline]
30543055
fn parse_assoc_expr(&mut self,
30553056
already_parsed_attrs: Option<ThinVec<Attribute>>)
30563057
-> PResult<'a, P<Expr>> {
@@ -3711,6 +3712,7 @@ impl<'a> Parser<'a> {
37113712
}
37123713

37133714
/// Parse an expression
3715+
#[inline]
37143716
pub fn parse_expr(&mut self) -> PResult<'a, P<Expr>> {
37153717
self.parse_expr_res(Restrictions::empty(), None)
37163718
}
@@ -3730,6 +3732,7 @@ impl<'a> Parser<'a> {
37303732
}
37313733

37323734
/// Parse an expression, subject to the given restrictions
3735+
#[inline]
37333736
fn parse_expr_res(&mut self, r: Restrictions,
37343737
already_parsed_attrs: Option<ThinVec<Attribute>>)
37353738
-> PResult<'a, P<Expr>> {

0 commit comments

Comments
 (0)