Inline ty_infer
This commit is contained in:
parent
2aa9d29c6a
commit
e41aa8c0d0
1 changed files with 1 additions and 5 deletions
|
@ -111,10 +111,6 @@ impl<'a> ExtCtxt<'a> {
|
||||||
ast::TyKind::Ptr(self.ty_mt(ty, mutbl)))
|
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,
|
pub fn typaram(&self,
|
||||||
span: Span,
|
span: Span,
|
||||||
ident: ast::Ident,
|
ident: ast::Ident,
|
||||||
|
@ -524,7 +520,7 @@ impl<'a> ExtCtxt<'a> {
|
||||||
body: P<ast::Expr>)
|
body: P<ast::Expr>)
|
||||||
-> P<ast::Expr> {
|
-> P<ast::Expr> {
|
||||||
let fn_decl = self.fn_decl(
|
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));
|
ast::FunctionRetTy::Default(span));
|
||||||
|
|
||||||
// FIXME -- We are using `span` as the span of the `|...|`
|
// FIXME -- We are using `span` as the span of the `|...|`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue