]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_expand/src/build.rs
Auto merge of #84833 - Mark-Simulacrum:thread-local-consts, r=varkor
[rust.git] / compiler / rustc_expand / src / build.rs
index 3664ff3ae8a2d89418ee2bff417811a9b9968408..cb8b9398283ef963b2cc68acd2f76b27d17887bc 100644 (file)
@@ -253,17 +253,6 @@ pub fn expr_call_global(
         let pathexpr = self.expr_path(self.path_global(sp, fn_path));
         self.expr_call(sp, pathexpr, args)
     }
-    pub fn expr_method_call(
-        &self,
-        span: Span,
-        expr: P<ast::Expr>,
-        ident: Ident,
-        mut args: Vec<P<ast::Expr>>,
-    ) -> P<ast::Expr> {
-        args.insert(0, expr);
-        let segment = ast::PathSegment::from_ident(ident.with_span_pos(span));
-        self.expr(span, ast::ExprKind::MethodCall(segment, args, span))
-    }
     pub fn expr_block(&self, b: P<ast::Block>) -> P<ast::Expr> {
         self.expr(b.span, ast::ExprKind::Block(b, None))
     }