Skip to content

Commit

Permalink
Inline ty_infer
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-Simulacrum committed Sep 21, 2019
1 parent 2aa9d29 commit e41aa8c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/libsyntax/ext/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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 `|...|`
Expand Down

0 comments on commit e41aa8c

Please sign in to comment.