Skip to content

Commit 564583e

Browse files
committed
---
yaml --- r: 47864 b: refs/heads/incoming c: 9147936 h: refs/heads/master v: v3
1 parent 7ecac27 commit 564583e

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
@@ -6,7 +6,7 @@ refs/heads/try: 2a8fb58d79e685d5ca07b039badcf2ae3ef077ea
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/incoming: 9c71249b9d97581e273938986e1fd67fd7b7b20b
9+
refs/heads/incoming: 91479363ccc4ee26aadfb3d2bc3b4868ba426ebd
1010
refs/heads/dist-snap: 8b98e5a296d95c5e832db0756828e5bec31c6f50
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/incoming/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)