@@ -553,7 +553,7 @@ fn ty_of_obj_ctor(tcx: ty::ctxt, mode: mode, id: ast::ident, ob: ast::_obj,
553553 let t_field = ast_ty_to_ty ( tcx, mode, f. ty ) ;
554554 t_inputs += [ { mode: ast:: by_copy, ty: t_field} ] ;
555555 }
556- let t_fn = ty:: mk_fn ( tcx, { proto: ast:: proto_shared ( ast :: sugar_normal ) ,
556+ let t_fn = ty:: mk_fn ( tcx, { proto: ast:: proto_shared,
557557 inputs: t_inputs, output: t_obj. ty ,
558558 ret_style: ast:: return_val, constraints: [ ] } ) ;
559559 let tpt = { bounds: ty_param_bounds ( tcx, mode, ty_params) , ty: t_fn} ;
@@ -697,7 +697,7 @@ mod collect {
697697 }
698698 // FIXME: this will be different for constrained types
699699 ty:: mk_fn ( cx. tcx ,
700- { proto: ast:: proto_shared ( ast :: sugar_normal ) ,
700+ { proto: ast:: proto_shared,
701701 inputs: args, output: tag_ty,
702702 ret_style: ast:: return_val, constraints: [ ] } )
703703 } ;
@@ -799,13 +799,13 @@ mod collect {
799799 let t_res = ty:: mk_res ( cx. tcx , local_def ( it. id ) , t_arg. ty ,
800800 params) ;
801801 let t_ctor = ty:: mk_fn ( cx. tcx , {
802- proto: ast:: proto_shared ( ast :: sugar_normal ) ,
802+ proto: ast:: proto_shared,
803803 inputs: [ { mode: ast:: by_copy with t_arg} ] ,
804804 output: t_res,
805805 ret_style: ast:: return_val, constraints: [ ]
806806 } ) ;
807807 let t_dtor = ty:: mk_fn ( cx. tcx , {
808- proto: ast:: proto_shared ( ast :: sugar_normal ) ,
808+ proto: ast:: proto_shared,
809809 inputs: [ t_arg] , output: ty:: mk_nil ( cx. tcx ) ,
810810 ret_style: ast:: return_val, constraints: [ ]
811811 } ) ;
@@ -1172,9 +1172,9 @@ fn gather_locals(ccx: @crate_ctxt,
11721172 } ;
11731173 let tcx = ccx. tcx ;
11741174
1175- let next_var_id = lambda ( ) -> int { let rv = * nvi; * nvi += 1 ; ret rv; } ;
1175+ let next_var_id = fn @ ( ) -> int { let rv = * nvi; * nvi += 1 ; ret rv; } ;
11761176 let assign =
1177- lambda ( nid: ast:: node_id, ty_opt: option:: t<ty:: t>) {
1177+ fn @ ( nid: ast:: node_id, ty_opt: option:: t<ty:: t>) {
11781178 let var_id = next_var_id ( ) ;
11791179 locals. insert ( nid, var_id) ;
11801180 alt ty_opt {
@@ -1206,15 +1206,15 @@ fn gather_locals(ccx: @crate_ctxt,
12061206
12071207 // Add explicitly-declared locals.
12081208 let visit_local =
1209- lambda ( local: @ast:: local, & & e : ( ) , v: visit:: vt<( ) >) {
1209+ fn @ ( local: @ast:: local, & & e : ( ) , v: visit:: vt<( ) >) {
12101210 let local_ty = ast_ty_to_ty_crate_infer ( ccx, local. node . ty ) ;
12111211 assign ( local. node . id , local_ty) ;
12121212 visit:: visit_local ( local, e, v) ;
12131213 } ;
12141214
12151215 // Add pattern bindings.
12161216 let visit_pat =
1217- lambda ( p: @ast:: pat, & & e : ( ) , v: visit:: vt<( ) >) {
1217+ fn @ ( p: @ast:: pat, & & e : ( ) , v: visit:: vt<( ) >) {
12181218 alt p. node {
12191219 ast:: pat_bind ( _, _) { assign ( p. id , none) ; }
12201220 _ { /* no-op */ }
@@ -1726,7 +1726,7 @@ fn check_expr_with_unifier(fcx: @fn_ctxt, expr: @ast::expr, unify: unifier,
17261726 // of arguments when we typecheck the functions. This isn't really the
17271727 // right way to do this.
17281728 let check_args =
1729- lambda ( check_blocks: bool ) -> bool {
1729+ fn @ ( check_blocks: bool ) -> bool {
17301730 let i = 0 u;
17311731 let bot = false ;
17321732 for a_opt: option:: t < @ast:: expr > in args {
@@ -2179,7 +2179,7 @@ fn check_expr_with_unifier(fcx: @fn_ctxt, expr: @ast::expr, unify: unifier,
21792179 fn lower_bound_proto ( proto : ast:: proto ) -> ast:: proto {
21802180 // FIXME: This is right for bare fns, possibly not others
21812181 alt proto {
2182- ast : : proto_bare. { ast:: proto_shared ( ast :: sugar_normal ) }
2182+ ast : : proto_bare. { ast:: proto_shared }
21832183 _ { proto }
21842184 }
21852185 }
@@ -2632,7 +2632,7 @@ fn check_const(ccx: @crate_ctxt, _sp: span, e: @ast::expr, id: ast::node_id) {
26322632 let fcx: @fn_ctxt =
26332633 @{ ret_ty: rty,
26342634 purity: ast:: pure_fn,
2635- proto: ast:: proto_shared ( ast :: sugar_normal ) ,
2635+ proto: ast:: proto_shared,
26362636 var_bindings: ty:: unify:: mk_var_bindings ( ) ,
26372637 locals: new_int_hash :: < int > ( ) ,
26382638 next_var_id: @mutable 0 ,
0 commit comments