@@ -230,7 +230,7 @@ pub type ctxt = @ctxt_;
230
230
struct ctxt_ {
231
231
diag : syntax:: diagnostic:: span_handler ,
232
232
interner : HashMap < intern_key , t_box > ,
233
- mut next_id : uint ,
233
+ next_id : @ mut uint ,
234
234
vecs_implicitly_copyable : bool ,
235
235
legacy_modes : bool ,
236
236
legacy_records : bool ,
@@ -261,7 +261,7 @@ struct ctxt_ {
261
261
short_names_cache : HashMap < t , @~str > ,
262
262
needs_drop_cache : HashMap < t , bool > ,
263
263
needs_unwind_cleanup_cache : HashMap < t , bool > ,
264
- mut tc_cache : LinearMap < uint , TypeContents > ,
264
+ tc_cache : @ mut LinearMap < uint , TypeContents > ,
265
265
ast_ty_to_ty_cache : HashMap < node_id , ast_ty_to_ty_cache_entry > ,
266
266
enum_var_cache : HashMap < def_id , @~[ VariantInfo ] > ,
267
267
trait_method_cache : HashMap < def_id , @~[ method ] > ,
@@ -811,7 +811,7 @@ pub fn mk_ctxt(s: session::Session,
811
811
@ctxt_ {
812
812
diag : s. diagnostic ( ) ,
813
813
interner : interner,
814
- mut next_id : 0 u ,
814
+ next_id : @ mut 0 ,
815
815
vecs_implicitly_copyable : vecs_implicitly_copyable,
816
816
legacy_modes : legacy_modes,
817
817
legacy_records : legacy_records,
@@ -831,7 +831,7 @@ pub fn mk_ctxt(s: session::Session,
831
831
short_names_cache : new_ty_hash ( ) ,
832
832
needs_drop_cache : new_ty_hash ( ) ,
833
833
needs_unwind_cleanup_cache : new_ty_hash ( ) ,
834
- tc_cache : LinearMap :: new ( ) ,
834
+ tc_cache : @ mut LinearMap :: new ( ) ,
835
835
ast_ty_to_ty_cache : HashMap ( ) ,
836
836
enum_var_cache : HashMap ( ) ,
837
837
trait_method_cache : HashMap ( ) ,
@@ -920,7 +920,7 @@ fn mk_t_with_id(cx: ctxt, +st: sty, o_def_id: Option<ast::def_id>) -> t {
920
920
921
921
let t = @t_box_ {
922
922
sty : st,
923
- id : cx. next_id ,
923
+ id : * cx. next_id ,
924
924
flags : flags,
925
925
o_def_id : o_def_id
926
926
} ;
@@ -931,7 +931,7 @@ fn mk_t_with_id(cx: ctxt, +st: sty, o_def_id: Option<ast::def_id>) -> t {
931
931
932
932
cx. interner . insert ( key, t) ;
933
933
934
- cx. next_id += 1 u ;
934
+ * cx. next_id += 1 ;
935
935
unsafe { cast:: reinterpret_cast ( & t) }
936
936
}
937
937
0 commit comments