Skip to content

Commit e41aa8c

Browse files
Inline ty_infer
1 parent 2aa9d29 commit e41aa8c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/libsyntax/ext/build.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,6 @@ impl<'a> ExtCtxt<'a> {
111111
ast::TyKind::Ptr(self.ty_mt(ty, mutbl)))
112112
}
113113

114-
pub fn ty_infer(&self, span: Span) -> P<ast::Ty> {
115-
self.ty(span, ast::TyKind::Infer)
116-
}
117-
118114
pub fn typaram(&self,
119115
span: Span,
120116
ident: ast::Ident,
@@ -524,7 +520,7 @@ impl<'a> ExtCtxt<'a> {
524520
body: P<ast::Expr>)
525521
-> P<ast::Expr> {
526522
let fn_decl = self.fn_decl(
527-
ids.iter().map(|id| self.param(span, *id, self.ty_infer(span))).collect(),
523+
ids.iter().map(|id| self.param(span, *id, self.ty(span, ast::TyKind::Infer))).collect(),
528524
ast::FunctionRetTy::Default(span));
529525

530526
// FIXME -- We are using `span` as the span of the `|...|`

0 commit comments

Comments
 (0)