@@ -1216,7 +1216,7 @@ impl Resolver {
1216
1216
visit_item( item, ( new_parent, visitor) ) ;
1217
1217
}
1218
1218
1219
- item_impl( _, None , ref ty, ref methods) => {
1219
+ item_impl( _, None , ty, ref methods) => {
1220
1220
// If this implements an anonymous trait, then add all the
1221
1221
// methods within to a new module, if the type was defined
1222
1222
// within this module.
@@ -1226,8 +1226,8 @@ impl Resolver {
1226
1226
// the same module that declared the type.
1227
1227
1228
1228
// Create the module and add all methods.
1229
- match ty {
1230
- & Ty {
1229
+ match * ty {
1230
+ Ty {
1231
1231
node : ty_path( ref path, _, _) ,
1232
1232
_
1233
1233
} if path. idents. len( ) == 1 => {
@@ -1296,7 +1296,7 @@ impl Resolver {
1296
1296
visit_item( item, ( parent, visitor) ) ;
1297
1297
}
1298
1298
1299
- item_impl( _, Some ( _) , _ , _ ) => {
1299
+ item_impl( _, Some ( _) , _ty , ref _methods ) => {
1300
1300
visit_item( item, ( parent, visitor) ) ;
1301
1301
}
1302
1302
@@ -3517,7 +3517,7 @@ impl Resolver {
3517
3517
3518
3518
item_impl( ref generics,
3519
3519
ref implemented_traits,
3520
- ref self_type,
3520
+ self_type,
3521
3521
ref methods) => {
3522
3522
self . resolve_implementation( item. id,
3523
3523
generics,
@@ -3568,10 +3568,10 @@ impl Resolver {
3568
3568
visitor) ;
3569
3569
3570
3570
for ty_m. decl. inputs. iter( ) . advance |argument| {
3571
- self . resolve_type( & argument. ty, visitor) ;
3571
+ self . resolve_type( argument. ty, visitor) ;
3572
3572
}
3573
3573
3574
- self . resolve_type( & ty_m. decl. output, visitor) ;
3574
+ self . resolve_type( ty_m. decl. output, visitor) ;
3575
3575
}
3576
3576
}
3577
3577
provided( m) => {
@@ -3761,12 +3761,12 @@ impl Resolver {
3761
3761
None ,
3762
3762
visitor) ;
3763
3763
3764
- self . resolve_type( & argument. ty, visitor) ;
3764
+ self . resolve_type( argument. ty, visitor) ;
3765
3765
3766
3766
debug!( "( resolving function) recorded argument") ;
3767
3767
}
3768
3768
3769
- self . resolve_type( & declaration. output, visitor) ;
3769
+ self . resolve_type( declaration. output, visitor) ;
3770
3770
}
3771
3771
}
3772
3772
@@ -3863,7 +3863,7 @@ impl Resolver {
3863
3863
3864
3864
// Resolve fields.
3865
3865
for fields. iter( ) . advance |field| {
3866
- self . resolve_type( & field. node. ty, visitor) ;
3866
+ self . resolve_type( field. node. ty, visitor) ;
3867
3867
}
3868
3868
}
3869
3869
}
@@ -3899,7 +3899,7 @@ impl Resolver {
3899
3899
id: node_id,
3900
3900
generics: & Generics ,
3901
3901
opt_trait_reference: & Option < trait_ref > ,
3902
- self_type: & Ty ,
3902
+ self_type: @ Ty ,
3903
3903
methods: & [ @method] ,
3904
3904
visitor: ResolveVisitor ) {
3905
3905
// If applicable, create a rib for the type parameters.
@@ -3987,7 +3987,7 @@ impl Resolver {
3987
3987
let mutability = if local. is_mutbl { Mutable} else { Immutable } ;
3988
3988
3989
3989
// Resolve the type.
3990
- self . resolve_type( & local. ty, visitor) ;
3990
+ self . resolve_type( local. ty, visitor) ;
3991
3991
3992
3992
// Resolve the initializer, if necessary.
3993
3993
match local. init {
@@ -4098,7 +4098,7 @@ impl Resolver {
4098
4098
debug ! ( "(resolving block) leaving block" ) ;
4099
4099
}
4100
4100
4101
- pub fn resolve_type( @mut self , ty: & Ty , visitor: ResolveVisitor ) {
4101
+ pub fn resolve_type( @mut self , ty: @ Ty , visitor: ResolveVisitor ) {
4102
4102
match ty. node {
4103
4103
// Like path expressions, the interpretation of path types depends
4104
4104
// on whether the path has multiple elements in it or not.
@@ -4320,7 +4320,7 @@ impl Resolver {
4320
4320
4321
4321
// Check the types in the path pattern.
4322
4322
for path. types. iter( ) . advance |ty| {
4323
- self . resolve_type( ty, visitor) ;
4323
+ self . resolve_type( * ty, visitor) ;
4324
4324
}
4325
4325
}
4326
4326
@@ -4353,7 +4353,7 @@ impl Resolver {
4353
4353
4354
4354
// Check the types in the path pattern.
4355
4355
for path. types. iter( ) . advance |ty| {
4356
- self . resolve_type( ty, visitor) ;
4356
+ self . resolve_type( * ty, visitor) ;
4357
4357
}
4358
4358
}
4359
4359
@@ -4382,7 +4382,7 @@ impl Resolver {
4382
4382
4383
4383
// Check the types in the path pattern.
4384
4384
for path. types. iter( ) . advance |ty| {
4385
- self . resolve_type( ty, visitor) ;
4385
+ self . resolve_type( * ty, visitor) ;
4386
4386
}
4387
4387
}
4388
4388
@@ -4478,7 +4478,7 @@ impl Resolver {
4478
4478
-> Option <def> {
4479
4479
// First, resolve the types.
4480
4480
for path. types. iter( ) . advance |ty| {
4481
- self . resolve_type( ty, visitor) ;
4481
+ self . resolve_type( * ty, visitor) ;
4482
4482
}
4483
4483
4484
4484
if path. global {
0 commit comments