Skip to content

Commit cbc3404

Browse files
committed
---
yaml --- r: 12093 b: refs/heads/master c: 0eae490 h: refs/heads/master i: 12091: d36f62a v: v3
1 parent 2917f83 commit cbc3404

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: c56910fc9ac5120d8637d6121753e4dc1670a390
2+
refs/heads/master: 0eae4906693b21d837dd230e1d2104ae5c3c2dde
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf

trunk/src/rustc/middle/ty.rs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,12 @@ enum ast_ty_to_ty_cache_entry {
177177
atttce_resolved(t) /* resolved to a type, irrespective of region */
178178
}
179179

180+
enum borrowing {
181+
bo_none,
182+
bo_box(@borrowing),
183+
bo_uniq(@borrowing)
184+
}
185+
180186
type ctxt =
181187
@{interner: hashmap<intern_key, t_box>,
182188
mutable next_id: uint,
@@ -196,7 +202,8 @@ type ctxt =
196202
enum_var_cache: hashmap<def_id, @[variant_info]>,
197203
iface_method_cache: hashmap<def_id, @[method]>,
198204
ty_param_bounds: hashmap<ast::node_id, param_bounds>,
199-
inferred_modes: hashmap<ast::node_id, ast::mode>};
205+
inferred_modes: hashmap<ast::node_id, ast::mode>,
206+
borrowings: hashmap<ast::node_id, borrowing>};
200207

201208
type t_box = @{struct: sty,
202209
id: uint,
@@ -381,7 +388,8 @@ fn mk_ctxt(s: session::session, dm: resolve::def_map, amap: ast_map::map,
381388
enum_var_cache: new_def_hash(),
382389
iface_method_cache: new_def_hash(),
383390
ty_param_bounds: map::int_hash(),
384-
inferred_modes: map::int_hash()}
391+
inferred_modes: map::int_hash(),
392+
borrowings: map::int_hash()}
385393
}
386394

387395

0 commit comments

Comments
 (0)