Skip to content

Commit ead0a45

Browse files
committed
Inline and remove parse_expr_assoc.
It has a single call site.
1 parent 25523ba commit ead0a45

File tree

1 file changed

+1
-10
lines changed
  • compiler/rustc_parse/src/parser

1 file changed

+1
-10
lines changed

compiler/rustc_parse/src/parser/expr.rs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -136,16 +136,7 @@ impl<'a> Parser<'a> {
136136
r: Restrictions,
137137
attrs: Option<AttrWrapper>,
138138
) -> PResult<'a, P<Expr>> {
139-
self.with_res(r, |this| this.parse_expr_assoc(attrs))
140-
}
141-
142-
/// Parses an associative expression.
143-
///
144-
/// This parses an expression accounting for associativity and precedence of the operators in
145-
/// the expression.
146-
#[inline]
147-
fn parse_expr_assoc(&mut self, attrs: Option<AttrWrapper>) -> PResult<'a, P<Expr>> {
148-
self.parse_expr_assoc_with(0, LhsExpr::Unparsed { attrs })
139+
self.with_res(r, |this| this.parse_expr_assoc_with(0, LhsExpr::Unparsed { attrs }))
149140
}
150141

151142
/// Parses an associative expression with operators of at least `min_prec` precedence.

0 commit comments

Comments
 (0)