about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMark Rousskov <mark.simulacrum@gmail.com>2019-09-21 15:05:31 -0400
committerMark Rousskov <mark.simulacrum@gmail.com>2019-09-21 16:14:10 -0400
commite41aa8c0d04d9a663638e66a82868f0fbeb83bd8 (patch)
treef2655b099418d43bee63f7fdcfe868e6bb8ae8fe
parent2aa9d29c6a054d0aca249eb2f9a002acea4ba175 (diff)
downloadrust-e41aa8c0d04d9a663638e66a82868f0fbeb83bd8.tar.gz
rust-e41aa8c0d04d9a663638e66a82868f0fbeb83bd8.zip
Inline ty_infer
-rw-r--r--src/libsyntax/ext/build.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/libsyntax/ext/build.rs b/src/libsyntax/ext/build.rs
index 70f915bf8c4..cadd7d563da 100644
--- a/src/libsyntax/ext/build.rs
+++ b/src/libsyntax/ext/build.rs
@@ -111,10 +111,6 @@ impl<'a> ExtCtxt<'a> {
                 ast::TyKind::Ptr(self.ty_mt(ty, mutbl)))
     }
 
-    pub fn ty_infer(&self, span: Span) -> P<ast::Ty> {
-        self.ty(span, ast::TyKind::Infer)
-    }
-
     pub fn typaram(&self,
                span: Span,
                ident: ast::Ident,
@@ -524,7 +520,7 @@ impl<'a> ExtCtxt<'a> {
               body: P<ast::Expr>)
               -> P<ast::Expr> {
         let fn_decl = self.fn_decl(
-            ids.iter().map(|id| self.param(span, *id, self.ty_infer(span))).collect(),
+            ids.iter().map(|id| self.param(span, *id, self.ty(span, ast::TyKind::Infer))).collect(),
             ast::FunctionRetTy::Default(span));
 
         // FIXME -- We are using `span` as the span of the `|...|`