about summary refs log tree commit diff
path: root/compiler/rustc_parse/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-06-19 10:34:05 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2024-06-19 18:53:25 +1000
commitead0a45202af9cefb9607a621d27da4927700229 (patch)
treee85cd61997c4743dad0bf427b617ce4f4ef6859f /compiler/rustc_parse/src
parent25523ba382037494e8f8f17779a5f1c72f6bddb2 (diff)
downloadrust-ead0a45202af9cefb9607a621d27da4927700229.tar.gz
rust-ead0a45202af9cefb9607a621d27da4927700229.zip
Inline and remove `parse_expr_assoc`.
It has a single call site.
Diffstat (limited to 'compiler/rustc_parse/src')
-rw-r--r--compiler/rustc_parse/src/parser/expr.rs11
1 files changed, 1 insertions, 10 deletions
diff --git a/compiler/rustc_parse/src/parser/expr.rs b/compiler/rustc_parse/src/parser/expr.rs
index eb3421cfee4..272067dca87 100644
--- a/compiler/rustc_parse/src/parser/expr.rs
+++ b/compiler/rustc_parse/src/parser/expr.rs
@@ -136,16 +136,7 @@ impl<'a> Parser<'a> {
         r: Restrictions,
         attrs: Option<AttrWrapper>,
     ) -> PResult<'a, P<Expr>> {
-        self.with_res(r, |this| this.parse_expr_assoc(attrs))
-    }
-
-    /// Parses an associative expression.
-    ///
-    /// This parses an expression accounting for associativity and precedence of the operators in
-    /// the expression.
-    #[inline]
-    fn parse_expr_assoc(&mut self, attrs: Option<AttrWrapper>) -> PResult<'a, P<Expr>> {
-        self.parse_expr_assoc_with(0, LhsExpr::Unparsed { attrs })
+        self.with_res(r, |this| this.parse_expr_assoc_with(0, LhsExpr::Unparsed { attrs }))
     }
 
     /// Parses an associative expression with operators of at least `min_prec` precedence.