@@ -214,7 +214,7 @@ pub trait AstBuilder {
214214
215215 fn arg ( & self , span : Span , name : Ident , ty : P < ast:: Ty > ) -> ast:: Arg ;
216216 // FIXME unused self
217- fn fn_decl ( & self , inputs : Vec < ast:: Arg > , output : P < ast:: Ty > ) -> P < ast:: FnDecl > ;
217+ fn fn_decl ( & self , inputs : Vec < ast:: Arg > , output : ast:: FunctionRetTy ) -> P < ast:: FnDecl > ;
218218
219219 fn item_fn_poly ( & self ,
220220 span : Span ,
@@ -924,7 +924,7 @@ impl<'a> AstBuilder for ExtCtxt<'a> {
924924 -> P < ast:: Expr > {
925925 let fn_decl = self . fn_decl (
926926 ids. iter ( ) . map ( |id| self . arg ( span, * id, self . ty_infer ( span) ) ) . collect ( ) ,
927- self . ty_infer ( span) ) ;
927+ ast :: FunctionRetTy :: Default ( span) ) ;
928928
929929 // FIXME -- We are using `span` as the span of the `|...|`
930930 // part of the lambda, but it probably (maybe?) corresponds to
@@ -970,10 +970,10 @@ impl<'a> AstBuilder for ExtCtxt<'a> {
970970 }
971971
972972 // FIXME unused self
973- fn fn_decl ( & self , inputs : Vec < ast:: Arg > , output : P < ast:: Ty > ) -> P < ast:: FnDecl > {
973+ fn fn_decl ( & self , inputs : Vec < ast:: Arg > , output : ast:: FunctionRetTy ) -> P < ast:: FnDecl > {
974974 P ( ast:: FnDecl {
975975 inputs,
976- output : ast :: FunctionRetTy :: Ty ( output ) ,
976+ output,
977977 variadic : false
978978 } )
979979 }
@@ -1003,7 +1003,7 @@ impl<'a> AstBuilder for ExtCtxt<'a> {
10031003 self . item ( span,
10041004 name,
10051005 Vec :: new ( ) ,
1006- ast:: ItemKind :: Fn ( self . fn_decl ( inputs, output) ,
1006+ ast:: ItemKind :: Fn ( self . fn_decl ( inputs, ast :: FunctionRetTy :: Ty ( output) ) ,
10071007 ast:: Unsafety :: Normal ,
10081008 dummy_spanned ( ast:: Constness :: NotConst ) ,
10091009 Abi :: Rust ,
0 commit comments