@@ -352,7 +352,7 @@ const uint idx_bot = 20u;
352
352
353
353
const uint idx_first_others = 21 u;
354
354
355
- type type_store = interner:: interner [ raw_t] ;
355
+ type type_store = interner:: interner [ @ raw_t] ;
356
356
357
357
type ty_param_substs_opt_and_ty = tup ( option:: t[ ty:: t [ ] ] , ty:: t ) ;
358
358
@@ -403,7 +403,7 @@ fn mk_ctxt(session::session s, resolve::def_map dm,
403
403
let node_type_table ntt =
404
404
@smallintmap:: mk[ ty:: ty_param_substs_opt_and_ty] ( ) ;
405
405
auto tcache = new_def_hash[ ty:: ty_param_count_and_ty] ( ) ;
406
- auto ts = @interner:: mk[ raw_t] ( hash_raw_ty, eq_raw_ty) ;
406
+ auto ts = @interner:: mk[ @ raw_t] ( hash_raw_ty, eq_raw_ty) ;
407
407
auto cx =
408
408
rec ( ts=ts,
409
409
sess=s,
@@ -428,14 +428,14 @@ fn mk_ctxt(session::session s, resolve::def_map dm,
428
428
429
429
430
430
// Type constructors
431
- fn mk_raw_ty ( & ctxt cx, & sty st, & option:: t[ str] in_cname ) -> raw_t {
431
+ fn mk_raw_ty ( & ctxt cx, & sty st, & option:: t[ str] in_cname ) -> @ raw_t {
432
432
auto cname = none;
433
433
auto h = hash_type_info ( st, cname) ;
434
434
let bool has_params = false ;
435
435
let bool has_vars = false ;
436
436
fn derive_flags_t ( & ctxt cx, & mutable bool has_params ,
437
437
& mutable bool has_vars , & t tt ) {
438
- auto rt = interner:: get[ raw_t] ( * cx. ts , tt) ;
438
+ auto rt = interner:: get[ @ raw_t] ( * cx. ts , tt) ;
439
439
has_params = has_params || rt. has_params ;
440
440
has_vars = has_vars || rt. has_vars ;
441
441
}
@@ -511,20 +511,20 @@ fn mk_raw_ty(&ctxt cx, &sty st, &option::t[str] in_cname) -> raw_t {
511
511
derive_flags_t ( cx, has_params, has_vars, tt) ;
512
512
}
513
513
}
514
- ret rec( struct=st,
515
- cname=cname,
516
- hash=h,
517
- has_params=has_params,
518
- has_vars=has_vars) ;
514
+ ret @ rec( struct=st,
515
+ cname=cname,
516
+ hash=h,
517
+ has_params=has_params,
518
+ has_vars=has_vars) ;
519
519
}
520
520
521
521
fn intern ( & ctxt cx, & sty st, & option:: t[ str] cname ) {
522
- interner:: intern[ raw_t ] ( * cx. ts , mk_raw_ty ( cx, st, cname) ) ;
522
+ interner:: intern ( * cx. ts , mk_raw_ty ( cx, st, cname) ) ;
523
523
}
524
524
525
525
fn gen_ty_full ( & ctxt cx, & sty st, & option:: t[ str] cname ) -> t {
526
526
auto raw_type = mk_raw_ty ( cx, st, cname) ;
527
- ret interner:: intern[ raw_t ] ( * cx. ts , raw_type) ;
527
+ ret interner:: intern ( * cx. ts , raw_type) ;
528
528
}
529
529
530
530
@@ -635,13 +635,13 @@ fn mk_native(&ctxt cx, &def_id did) -> t { ret gen_ty(cx, ty_native(did)); }
635
635
636
636
// Returns the one-level-deep type structure of the given type.
637
637
fn struct ( & ctxt cx, & t typ) -> sty {
638
- ret interner:: get[ raw_t ] ( * cx. ts, typ) . struct ;
638
+ ret interner:: get( * cx. ts, typ) . struct ;
639
639
}
640
640
641
641
642
642
// Returns the canonical name of the given type.
643
643
fn cname( & ctxt cx, & t typ) -> option:: t[ str] {
644
- ret interner:: get[ raw_t ] ( * cx. ts, typ) . cname;
644
+ ret interner:: get( * cx. ts, typ) . cname;
645
645
}
646
646
647
647
@@ -1434,7 +1434,7 @@ fn hash_type_info(&sty st, &option::t[str] cname_opt) -> uint {
1434
1434
ret h;
1435
1435
}
1436
1436
1437
- fn hash_raw_ty( & raw_t rt) -> uint { ret rt. hash; }
1437
+ fn hash_raw_ty( & @ raw_t rt) -> uint { ret rt. hash; }
1438
1438
1439
1439
fn hash_ty( & t typ) -> uint { ret typ; }
1440
1440
@@ -1728,7 +1728,7 @@ fn equal_type_structures(&sty a, &sty b) -> bool {
1728
1728
// module.
1729
1729
//
1730
1730
// FIXME: Use structural comparison, but this loops forever and segfaults.
1731
- fn eq_raw_ty( & raw_t a, & raw_t b) -> bool {
1731
+ fn eq_raw_ty( & @ raw_t a, & @ raw_t b) -> bool {
1732
1732
// Check hashes (fast path).
1733
1733
1734
1734
if ( a. hash != b. hash) { ret false; }
@@ -1830,11 +1830,11 @@ fn count_ty_params(&ctxt cx, t ty) -> uint {
1830
1830
}
1831
1831
1832
1832
fn type_contains_vars( & ctxt cx, & t typ) -> bool {
1833
- ret interner:: get[ raw_t ] ( * cx. ts, typ) . has_vars;
1833
+ ret interner:: get( * cx. ts, typ) . has_vars;
1834
1834
}
1835
1835
1836
1836
fn type_contains_params( & ctxt cx, & t typ) -> bool {
1837
- ret interner:: get[ raw_t ] ( * cx. ts, typ) . has_params;
1837
+ ret interner:: get( * cx. ts, typ) . has_params;
1838
1838
}
1839
1839
1840
1840
0 commit comments