@@ -291,16 +291,16 @@ enum var_value<V:copy, T:copy> {
291
291
root( T , uint ) ,
292
292
}
293
293
294
- type vals_and_bindings < V : copy , T : copy > = {
295
- vals : smallintmap < var_value < V , T > > ,
296
- mut bindings : ~[ ( V , var_value < V , T > ) ]
297
- } ;
294
+ struct vals_and_bindings < V : copy , T : copy > {
295
+ vals : smallintmap < var_value < V , T > > ;
296
+ mut bindings: ~[ ( V , var_value<V , T >) ] ;
297
+ }
298
298
299
- enum node < V : copy , T : copy > = {
300
- root: V ,
301
- possible_types: T ,
302
- rank: uint,
303
- } ;
299
+ struct node < V : copy , T : copy > {
300
+ root : V ;
301
+ possible_types: T ;
302
+ rank: uint;
303
+ }
304
304
305
305
enum infer_ctxt = @{
306
306
tcx: ty:: ctxt,
@@ -353,7 +353,10 @@ type ures = result::result<(), ty::type_err>;
353
353
type fres < T > = result:: result < T , fixup_err > ;
354
354
355
355
fn new_vals_and_bindings < V : copy , T : copy > ( ) -> vals_and_bindings < V , T > {
356
- { vals: smallintmap:: mk ( ) , mut bindings: ~[ ] }
356
+ vals_and_bindings {
357
+ vals : smallintmap:: mk ( ) ,
358
+ mut bindings : ~[ ]
359
+ }
357
360
}
358
361
359
362
fn new_infer_ctxt ( tcx : ty:: ctxt ) -> infer_ctxt {
@@ -727,15 +730,15 @@ impl infer_ctxt {
727
730
some( var_val) => {
728
731
match var_val {
729
732
redirect( vid) => {
730
- let nde = self . get ( vb, vid) ;
731
- if nde . root != vid {
733
+ let node = self . get ( vb, vid) ;
734
+ if node . root != vid {
732
735
// Path compression
733
- vb. vals . insert ( vid. to_uint ( ) , redirect ( nde . root ) ) ;
736
+ vb. vals . insert ( vid. to_uint ( ) , redirect ( node . root ) ) ;
734
737
}
735
- nde
738
+ node
736
739
}
737
740
root( pt, rk) => {
738
- node ( { root: vid, possible_types: pt, rank: rk} )
741
+ node { root : vid, possible_types : pt, rank : rk}
739
742
}
740
743
}
741
744
}
0 commit comments