@@ -14,7 +14,7 @@ use abi;
1414use ast:: BareFnTy ;
1515use ast:: { RegionTyParamBound , TraitTyParamBound , TraitBoundModifier } ;
1616use ast:: { Public , Unsafety } ;
17- use ast:: { Mod , BiAdd , Arg , Arm , Attribute , BindByRef , BindByValue } ;
17+ use ast:: { Mod , BiAdd , Arg , Arm , Attribute , BindingMode } ;
1818use ast:: { BiBitAnd , BiBitOr , BiBitXor , BiRem , BiLt , Block } ;
1919use ast:: { BlockCheckMode , CaptureByRef , CaptureByValue , CaptureClause } ;
2020use ast:: { Constness , ConstTraitItem , Crate , CrateConfig } ;
@@ -3278,10 +3278,10 @@ impl<'a> Parser<'a> {
32783278 hi = self . last_span . hi ;
32793279
32803280 let bind_type = match ( is_ref, is_mut) {
3281- ( true , true ) => BindByRef ( MutMutable ) ,
3282- ( true , false ) => BindByRef ( MutImmutable ) ,
3283- ( false , true ) => BindByValue ( MutMutable ) ,
3284- ( false , false ) => BindByValue ( MutImmutable ) ,
3281+ ( true , true ) => BindingMode :: ByRef ( MutMutable ) ,
3282+ ( true , false ) => BindingMode :: ByRef ( MutImmutable ) ,
3283+ ( false , true ) => BindingMode :: ByValue ( MutMutable ) ,
3284+ ( false , false ) => BindingMode :: ByValue ( MutImmutable ) ,
32853285 } ;
32863286 let fieldpath = codemap:: Spanned { span : self . last_span , node : fieldname} ;
32873287 let fieldpat = P ( ast:: Pat {
@@ -3376,11 +3376,11 @@ impl<'a> Parser<'a> {
33763376 // At this point, token != _, &, &&, (, [
33773377 if try!( self . eat_keyword ( keywords:: Mut ) ) {
33783378 // Parse mut ident @ pat
3379- pat = try!( self . parse_pat_ident ( BindByValue ( MutMutable ) ) ) ;
3379+ pat = try!( self . parse_pat_ident ( BindingMode :: ByValue ( MutMutable ) ) ) ;
33803380 } else if try!( self . eat_keyword ( keywords:: Ref ) ) {
33813381 // Parse ref ident @ pat / ref mut ident @ pat
33823382 let mutbl = try!( self . parse_mutability ( ) ) ;
3383- pat = try!( self . parse_pat_ident ( BindByRef ( mutbl) ) ) ;
3383+ pat = try!( self . parse_pat_ident ( BindingMode :: ByRef ( mutbl) ) ) ;
33843384 } else if try!( self . eat_keyword ( keywords:: Box ) ) {
33853385 // Parse box pat
33863386 let subpat = try!( self . parse_pat ( ) ) ;
@@ -3409,7 +3409,7 @@ impl<'a> Parser<'a> {
34093409 // Parse ident @ pat
34103410 // This can give false positives and parse nullary enums,
34113411 // they are dealt with later in resolve
3412- pat = try!( self . parse_pat_ident ( BindByValue ( MutImmutable ) ) ) ;
3412+ pat = try!( self . parse_pat_ident ( BindingMode :: ByValue ( MutImmutable ) ) ) ;
34133413 }
34143414 } else {
34153415 let ( qself, path) = if try!( self . eat_lt ( ) ) {
0 commit comments