Skip to content

Commit e605eef

Browse files
committed
---
yaml --- r: 46455 b: refs/heads/auto c: 9147936 h: refs/heads/master i: 46453: 2d39020 46451: e5d10a2 46447: fc87167 v: v3
1 parent bb6d586 commit e605eef

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1414
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1515
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1616
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17-
refs/heads/auto: 9c71249b9d97581e273938986e1fd67fd7b7b20b
17+
refs/heads/auto: 91479363ccc4ee26aadfb3d2bc3b4868ba426ebd

branches/auto/src/librustc/middle/ty.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ pub type ctxt = @ctxt_;
230230
struct ctxt_ {
231231
diag: syntax::diagnostic::span_handler,
232232
interner: HashMap<intern_key, t_box>,
233-
mut next_id: uint,
233+
next_id: @mut uint,
234234
vecs_implicitly_copyable: bool,
235235
legacy_modes: bool,
236236
legacy_records: bool,
@@ -261,7 +261,7 @@ struct ctxt_ {
261261
short_names_cache: HashMap<t, @~str>,
262262
needs_drop_cache: HashMap<t, bool>,
263263
needs_unwind_cleanup_cache: HashMap<t, bool>,
264-
mut tc_cache: LinearMap<uint, TypeContents>,
264+
tc_cache: @mut LinearMap<uint, TypeContents>,
265265
ast_ty_to_ty_cache: HashMap<node_id, ast_ty_to_ty_cache_entry>,
266266
enum_var_cache: HashMap<def_id, @~[VariantInfo]>,
267267
trait_method_cache: HashMap<def_id, @~[method]>,
@@ -811,7 +811,7 @@ pub fn mk_ctxt(s: session::Session,
811811
@ctxt_ {
812812
diag: s.diagnostic(),
813813
interner: interner,
814-
mut next_id: 0u,
814+
next_id: @mut 0,
815815
vecs_implicitly_copyable: vecs_implicitly_copyable,
816816
legacy_modes: legacy_modes,
817817
legacy_records: legacy_records,
@@ -831,7 +831,7 @@ pub fn mk_ctxt(s: session::Session,
831831
short_names_cache: new_ty_hash(),
832832
needs_drop_cache: new_ty_hash(),
833833
needs_unwind_cleanup_cache: new_ty_hash(),
834-
tc_cache: LinearMap::new(),
834+
tc_cache: @mut LinearMap::new(),
835835
ast_ty_to_ty_cache: HashMap(),
836836
enum_var_cache: HashMap(),
837837
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 {
920920

921921
let t = @t_box_ {
922922
sty: st,
923-
id: cx.next_id,
923+
id: *cx.next_id,
924924
flags: flags,
925925
o_def_id: o_def_id
926926
};
@@ -931,7 +931,7 @@ fn mk_t_with_id(cx: ctxt, +st: sty, o_def_id: Option<ast::def_id>) -> t {
931931

932932
cx.interner.insert(key, t);
933933

934-
cx.next_id += 1u;
934+
*cx.next_id += 1;
935935
unsafe { cast::reinterpret_cast(&t) }
936936
}
937937

0 commit comments

Comments
 (0)