diff --git a/src/rustc/middle/ty.rs b/src/rustc/middle/ty.rs index fcc78b4033e..233f5e38e9d 100644 --- a/src/rustc/middle/ty.rs +++ b/src/rustc/middle/ty.rs @@ -177,6 +177,12 @@ enum ast_ty_to_ty_cache_entry { atttce_resolved(t) /* resolved to a type, irrespective of region */ } +enum borrowing { + bo_none, + bo_box(@borrowing), + bo_uniq(@borrowing) +} + type ctxt = @{interner: hashmap, mutable next_id: uint, @@ -196,7 +202,8 @@ type ctxt = enum_var_cache: hashmap, iface_method_cache: hashmap, ty_param_bounds: hashmap, - inferred_modes: hashmap}; + inferred_modes: hashmap, + borrowings: hashmap}; type t_box = @{struct: sty, id: uint, @@ -381,7 +388,8 @@ fn mk_ctxt(s: session::session, dm: resolve::def_map, amap: ast_map::map, enum_var_cache: new_def_hash(), iface_method_cache: new_def_hash(), ty_param_bounds: map::int_hash(), - inferred_modes: map::int_hash()} + inferred_modes: map::int_hash(), + borrowings: map::int_hash()} }