@@ -50,8 +50,8 @@ use util::nodemap::{NodeMap, NodeSet, DefIdSet, FnvHashMap};
5050
5151use syntax:: ast:: { Arm , BindByRef , BindByValue , BindingMode , Block , Crate , CrateNum } ;
5252use syntax:: ast:: { DeclItem , DefId , Expr , ExprAgain , ExprBreak , ExprField } ;
53- use syntax:: ast:: { ExprFnBlock , ExprForLoop , ExprLoop , ExprWhile , ExprMethodCall } ;
54- use syntax:: ast:: { ExprPath , ExprProc , ExprStruct , ExprUnboxedFn , FnDecl } ;
53+ use syntax:: ast:: { ExprClosure , ExprForLoop , ExprLoop , ExprWhile , ExprMethodCall } ;
54+ use syntax:: ast:: { ExprPath , ExprProc , ExprStruct , FnDecl } ;
5555use syntax:: ast:: { ForeignItem , ForeignItemFn , ForeignItemStatic , Generics } ;
5656use syntax:: ast:: { Ident , ImplItem , Item , ItemEnum , ItemFn , ItemForeignMod } ;
5757use syntax:: ast:: { ItemImpl , ItemMac , ItemMod , ItemStatic , ItemStruct } ;
@@ -5903,24 +5903,19 @@ impl<'a> Resolver<'a> {
59035903 visit:: walk_expr ( self , expr) ;
59045904 }
59055905
5906- ExprFnBlock ( capture_clause, ref fn_decl, ref block) => {
5906+ ExprClosure ( capture_clause, _ , ref fn_decl, ref block) => {
59075907 self . capture_mode_map . insert ( expr. id , capture_clause) ;
59085908 self . resolve_function ( ClosureRibKind ( expr. id , ast:: DUMMY_NODE_ID ) ,
59095909 Some ( & * * fn_decl) , NoTypeParameters ,
59105910 & * * block) ;
59115911 }
5912+
59125913 ExprProc ( ref fn_decl, ref block) => {
59135914 self . capture_mode_map . insert ( expr. id , ast:: CaptureByValue ) ;
59145915 self . resolve_function ( ClosureRibKind ( expr. id , block. id ) ,
59155916 Some ( & * * fn_decl) , NoTypeParameters ,
59165917 & * * block) ;
59175918 }
5918- ExprUnboxedFn ( capture_clause, _, ref fn_decl, ref block) => {
5919- self . capture_mode_map . insert ( expr. id , capture_clause) ;
5920- self . resolve_function ( ClosureRibKind ( expr. id , block. id ) ,
5921- Some ( & * * fn_decl) , NoTypeParameters ,
5922- & * * block) ;
5923- }
59245919
59255920 ExprStruct ( ref path, _, _) => {
59265921 // Resolve the path to the structure it goes to. We don't
0 commit comments