@@ -51,7 +51,7 @@ use util::nodemap::{NodeMap, NodeSet, DefIdSet, FnvHashMap};
51
51
use syntax:: ast:: { Arm , BindByRef , BindByValue , BindingMode , Block , Crate , CrateNum } ;
52
52
use syntax:: ast:: { DeclItem , DefId , Expr , ExprAgain , ExprBreak , ExprField } ;
53
53
use syntax:: ast:: { ExprClosure , ExprForLoop , ExprLoop , ExprWhile , ExprMethodCall } ;
54
- use syntax:: ast:: { ExprPath , ExprProc , ExprStruct , FnDecl } ;
54
+ use syntax:: ast:: { ExprPath , ExprStruct , FnDecl } ;
55
55
use syntax:: ast:: { ForeignItem , ForeignItemFn , ForeignItemStatic , Generics } ;
56
56
use syntax:: ast:: { Ident , ImplItem , Item , ItemEnum , ItemFn , ItemForeignMod } ;
57
57
use syntax:: ast:: { ItemImpl , ItemMac , ItemMod , ItemStatic , ItemStruct } ;
@@ -64,7 +64,7 @@ use syntax::ast::{RegionTyParamBound, StmtDecl, StructField};
64
64
use syntax:: ast:: { StructVariantKind , TraitRef , TraitTyParamBound } ;
65
65
use syntax:: ast:: { TupleVariantKind , Ty , TyBool , TyChar , TyClosure , TyF32 } ;
66
66
use syntax:: ast:: { TyF64 , TyFloat , TyI , TyI8 , TyI16 , TyI32 , TyI64 , TyInt , TyObjectSum } ;
67
- use syntax:: ast:: { TyParam , TyParamBound , TyPath , TyPtr , TyPolyTraitRef , TyProc , TyQPath } ;
67
+ use syntax:: ast:: { TyParam , TyParamBound , TyPath , TyPtr , TyPolyTraitRef , TyQPath } ;
68
68
use syntax:: ast:: { TyRptr , TyStr , TyU , TyU8 , TyU16 , TyU32 , TyU64 , TyUint } ;
69
69
use syntax:: ast:: { TypeImplItem , UnnamedField } ;
70
70
use syntax:: ast:: { Variant , ViewItem , ViewItemExternCrate } ;
@@ -5027,7 +5027,7 @@ impl<'a> Resolver<'a> {
5027
5027
self . resolve_trait_reference ( ty. id , & * qpath. trait_ref , TraitQPath ) ;
5028
5028
}
5029
5029
5030
- TyClosure ( ref c) | TyProc ( ref c ) => {
5030
+ TyClosure ( ref c) => {
5031
5031
self . resolve_type_parameter_bounds (
5032
5032
ty. id ,
5033
5033
& c. bounds ,
@@ -5902,13 +5902,6 @@ impl<'a> Resolver<'a> {
5902
5902
& * * block) ;
5903
5903
}
5904
5904
5905
- ExprProc ( ref fn_decl, ref block) => {
5906
- self . capture_mode_map . insert ( expr. id , ast:: CaptureByValue ) ;
5907
- self . resolve_function ( ClosureRibKind ( expr. id , block. id ) ,
5908
- Some ( & * * fn_decl) , NoTypeParameters ,
5909
- & * * block) ;
5910
- }
5911
-
5912
5905
ExprStruct ( ref path, _, _) => {
5913
5906
// Resolve the path to the structure it goes to. We don't
5914
5907
// check to ensure that the path is actually a structure; that
0 commit comments