@@ -1233,7 +1233,7 @@ impl Resolver {
1233
1233
visit_item( item, ( new_parent, visitor) ) ;
1234
1234
}
1235
1235
1236
- item_impl( _, None , ref ty, ref methods) => {
1236
+ item_impl( _, None , ty, ref methods) => {
1237
1237
// If this implements an anonymous trait, then add all the
1238
1238
// methods within to a new module, if the type was defined
1239
1239
// within this module.
@@ -1243,8 +1243,8 @@ impl Resolver {
1243
1243
// the same module that declared the type.
1244
1244
1245
1245
// Create the module and add all methods.
1246
- match ty {
1247
- & Ty {
1246
+ match * ty {
1247
+ Ty {
1248
1248
node : ty_path( ref path, _, _) ,
1249
1249
_
1250
1250
} if path. idents. len( ) == 1 => {
@@ -1313,7 +1313,7 @@ impl Resolver {
1313
1313
visit_item( item, ( parent, visitor) ) ;
1314
1314
}
1315
1315
1316
- item_impl( _, Some ( _) , _ , _ ) => {
1316
+ item_impl( _, Some ( _) , _ty , ref _methods ) => {
1317
1317
visit_item( item, ( parent, visitor) ) ;
1318
1318
}
1319
1319
@@ -3534,7 +3534,7 @@ impl Resolver {
3534
3534
3535
3535
item_impl( ref generics,
3536
3536
ref implemented_traits,
3537
- ref self_type,
3537
+ self_type,
3538
3538
ref methods) => {
3539
3539
self . resolve_implementation( item. id,
3540
3540
generics,
@@ -3585,10 +3585,10 @@ impl Resolver {
3585
3585
visitor) ;
3586
3586
3587
3587
for ty_m. decl. inputs. iter( ) . advance |argument| {
3588
- self . resolve_type( & argument. ty, visitor) ;
3588
+ self . resolve_type( argument. ty, visitor) ;
3589
3589
}
3590
3590
3591
- self . resolve_type( & ty_m. decl. output, visitor) ;
3591
+ self . resolve_type( ty_m. decl. output, visitor) ;
3592
3592
}
3593
3593
}
3594
3594
provided( m) => {
@@ -3778,12 +3778,12 @@ impl Resolver {
3778
3778
None ,
3779
3779
visitor) ;
3780
3780
3781
- self . resolve_type( & argument. ty, visitor) ;
3781
+ self . resolve_type( argument. ty, visitor) ;
3782
3782
3783
3783
debug!( "( resolving function) recorded argument") ;
3784
3784
}
3785
3785
3786
- self . resolve_type( & declaration. output, visitor) ;
3786
+ self . resolve_type( declaration. output, visitor) ;
3787
3787
}
3788
3788
}
3789
3789
@@ -3878,7 +3878,7 @@ impl Resolver {
3878
3878
3879
3879
// Resolve fields.
3880
3880
for fields. iter( ) . advance |field| {
3881
- self . resolve_type( & field. node. ty, visitor) ;
3881
+ self . resolve_type( field. node. ty, visitor) ;
3882
3882
}
3883
3883
}
3884
3884
}
@@ -3914,7 +3914,7 @@ impl Resolver {
3914
3914
id: node_id,
3915
3915
generics: & Generics ,
3916
3916
opt_trait_reference: & Option < trait_ref > ,
3917
- self_type: & Ty ,
3917
+ self_type: @ Ty ,
3918
3918
methods: & [ @method] ,
3919
3919
visitor: ResolveVisitor ) {
3920
3920
// If applicable, create a rib for the type parameters.
@@ -4001,7 +4001,7 @@ impl Resolver {
4001
4001
let mutability = if local. node. is_mutbl { Mutable} else { Immutable } ;
4002
4002
4003
4003
// Resolve the type.
4004
- self . resolve_type( & local. node. ty, visitor) ;
4004
+ self . resolve_type( local. node. ty, visitor) ;
4005
4005
4006
4006
// Resolve the initializer, if necessary.
4007
4007
match local. node. init {
@@ -4112,7 +4112,7 @@ impl Resolver {
4112
4112
debug ! ( "(resolving block) leaving block" ) ;
4113
4113
}
4114
4114
4115
- pub fn resolve_type( @mut self , ty: & Ty , visitor: ResolveVisitor ) {
4115
+ pub fn resolve_type( @mut self , ty: @ Ty , visitor: ResolveVisitor ) {
4116
4116
match ty. node {
4117
4117
// Like path expressions, the interpretation of path types depends
4118
4118
// on whether the path has multiple elements in it or not.
@@ -4334,7 +4334,7 @@ impl Resolver {
4334
4334
4335
4335
// Check the types in the path pattern.
4336
4336
for path. types. iter( ) . advance |ty| {
4337
- self . resolve_type( ty, visitor) ;
4337
+ self . resolve_type( * ty, visitor) ;
4338
4338
}
4339
4339
}
4340
4340
@@ -4367,7 +4367,7 @@ impl Resolver {
4367
4367
4368
4368
// Check the types in the path pattern.
4369
4369
for path. types. iter( ) . advance |ty| {
4370
- self . resolve_type( ty, visitor) ;
4370
+ self . resolve_type( * ty, visitor) ;
4371
4371
}
4372
4372
}
4373
4373
@@ -4396,7 +4396,7 @@ impl Resolver {
4396
4396
4397
4397
// Check the types in the path pattern.
4398
4398
for path. types. iter( ) . advance |ty| {
4399
- self . resolve_type( ty, visitor) ;
4399
+ self . resolve_type( * ty, visitor) ;
4400
4400
}
4401
4401
}
4402
4402
@@ -4491,7 +4491,7 @@ impl Resolver {
4491
4491
-> Option <def> {
4492
4492
// First, resolve the types.
4493
4493
for path. types. iter( ) . advance |ty| {
4494
- self . resolve_type( ty, visitor) ;
4494
+ self . resolve_type( * ty, visitor) ;
4495
4495
}
4496
4496
4497
4497
if path. global {
0 commit comments