@@ -1233,7 +1233,7 @@ impl Resolver {
12331233 visit_item( item, ( new_parent, visitor) ) ;
12341234 }
12351235
1236- item_impl( _, None , ty, ref methods) => {
1236+ item_impl( _, None , ref ty, ref methods) => {
12371237 // If this implements an anonymous trait, then add all the
12381238 // methods within to a new module, if the type was defined
12391239 // within this module.
@@ -1243,8 +1243,8 @@ impl Resolver {
12431243 // the same module that declared the type.
12441244
12451245 // Create the module and add all methods.
1246- match * ty {
1247- Ty {
1246+ match ty {
1247+ & Ty {
12481248 node : ty_path( ref path, _, _) ,
12491249 _
12501250 } if path. idents. len( ) == 1 => {
@@ -1313,7 +1313,7 @@ impl Resolver {
13131313 visit_item( item, ( parent, visitor) ) ;
13141314 }
13151315
1316- item_impl( _, Some ( _) , _ty , ref _methods ) => {
1316+ item_impl( _, Some ( _) , _ , _ ) => {
13171317 visit_item( item, ( parent, visitor) ) ;
13181318 }
13191319
@@ -3534,7 +3534,7 @@ impl Resolver {
35343534
35353535 item_impl( ref generics,
35363536 ref implemented_traits,
3537- self_type,
3537+ ref self_type,
35383538 ref methods) => {
35393539 self . resolve_implementation( item. id,
35403540 generics,
@@ -3585,10 +3585,10 @@ impl Resolver {
35853585 visitor) ;
35863586
35873587 for ty_m. decl. inputs. iter( ) . advance |argument| {
3588- self . resolve_type( argument. ty, visitor) ;
3588+ self . resolve_type( & argument. ty, visitor) ;
35893589 }
35903590
3591- self . resolve_type( ty_m. decl. output, visitor) ;
3591+ self . resolve_type( & ty_m. decl. output, visitor) ;
35923592 }
35933593 }
35943594 provided( m) => {
@@ -3778,12 +3778,12 @@ impl Resolver {
37783778 None ,
37793779 visitor) ;
37803780
3781- self . resolve_type( argument. ty, visitor) ;
3781+ self . resolve_type( & argument. ty, visitor) ;
37823782
37833783 debug!( "( resolving function) recorded argument") ;
37843784 }
37853785
3786- self . resolve_type( declaration. output, visitor) ;
3786+ self . resolve_type( & declaration. output, visitor) ;
37873787 }
37883788 }
37893789
@@ -3878,7 +3878,7 @@ impl Resolver {
38783878
38793879 // Resolve fields.
38803880 for fields. iter( ) . advance |field| {
3881- self . resolve_type( field. node. ty, visitor) ;
3881+ self . resolve_type( & field. node. ty, visitor) ;
38823882 }
38833883 }
38843884 }
@@ -3914,7 +3914,7 @@ impl Resolver {
39143914 id: node_id,
39153915 generics: & Generics ,
39163916 opt_trait_reference: & Option < trait_ref > ,
3917- self_type: @ Ty ,
3917+ self_type: & Ty ,
39183918 methods: & [ @method] ,
39193919 visitor: ResolveVisitor ) {
39203920 // If applicable, create a rib for the type parameters.
@@ -4001,7 +4001,7 @@ impl Resolver {
40014001 let mutability = if local. node. is_mutbl { Mutable} else { Immutable } ;
40024002
40034003 // Resolve the type.
4004- self . resolve_type( local. node. ty, visitor) ;
4004+ self . resolve_type( & local. node. ty, visitor) ;
40054005
40064006 // Resolve the initializer, if necessary.
40074007 match local. node. init {
@@ -4112,7 +4112,7 @@ impl Resolver {
41124112 debug ! ( "(resolving block) leaving block" ) ;
41134113 }
41144114
4115- pub fn resolve_type( @mut self , ty: @ Ty , visitor: ResolveVisitor ) {
4115+ pub fn resolve_type( @mut self , ty: & Ty , visitor: ResolveVisitor ) {
41164116 match ty. node {
41174117 // Like path expressions, the interpretation of path types depends
41184118 // on whether the path has multiple elements in it or not.
@@ -4334,7 +4334,7 @@ impl Resolver {
43344334
43354335 // Check the types in the path pattern.
43364336 for path. types. iter( ) . advance |ty| {
4337- self . resolve_type( * ty, visitor) ;
4337+ self . resolve_type( ty, visitor) ;
43384338 }
43394339 }
43404340
@@ -4367,7 +4367,7 @@ impl Resolver {
43674367
43684368 // Check the types in the path pattern.
43694369 for path. types. iter( ) . advance |ty| {
4370- self . resolve_type( * ty, visitor) ;
4370+ self . resolve_type( ty, visitor) ;
43714371 }
43724372 }
43734373
@@ -4396,7 +4396,7 @@ impl Resolver {
43964396
43974397 // Check the types in the path pattern.
43984398 for path. types. iter( ) . advance |ty| {
4399- self . resolve_type( * ty, visitor) ;
4399+ self . resolve_type( ty, visitor) ;
44004400 }
44014401 }
44024402
@@ -4491,7 +4491,7 @@ impl Resolver {
44914491 -> Option <def> {
44924492 // First, resolve the types.
44934493 for path. types. iter( ) . advance |ty| {
4494- self . resolve_type( * ty, visitor) ;
4494+ self . resolve_type( ty, visitor) ;
44954495 }
44964496
44974497 if path. global {
0 commit comments