Skip to content

Commit e4b4401

Browse files
committed
---
yaml --- r: 12627 b: refs/heads/master c: b88ecec h: refs/heads/master i: 12625: 253a02a 12623: 100e83c v: v3
1 parent 143728b commit e4b4401

File tree

2 files changed

+4
-13
lines changed

2 files changed

+4
-13
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: 06afe21c033abf370825034f3b1639a80386da6d
2+
refs/heads/master: b88ecec08c9998c08ef8fafe5ac49c17bc99c516
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: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,7 @@ type ctxt =
227227
iface_method_cache: hashmap<def_id, @[method]>,
228228
ty_param_bounds: hashmap<ast::node_id, param_bounds>,
229229
inferred_modes: hashmap<ast::node_id, ast::mode>,
230-
borrowings: hashmap<ast::node_id, ()>,
231-
normalized_cache: hashmap<t, t>};
230+
borrowings: hashmap<ast::node_id, ()>};
232231

233232
type t_box = @{struct: sty,
234233
id: uint,
@@ -462,8 +461,7 @@ fn mk_ctxt(s: session::session, dm: resolve::def_map, amap: ast_map::map,
462461
iface_method_cache: new_def_hash(),
463462
ty_param_bounds: map::int_hash(),
464463
inferred_modes: map::int_hash(),
465-
borrowings: map::int_hash(),
466-
normalized_cache: new_ty_hash()}
464+
borrowings: map::int_hash()}
467465
}
468466

469467

@@ -2682,11 +2680,6 @@ fn ty_params_to_tys(tcx: ty::ctxt, tps: [ast::ty_param]) -> [t] {
26822680
Returns an equivalent type with all the typedefs and self regions removed
26832681
"]
26842682
fn normalize_ty(cx: ctxt, t: t) -> t {
2685-
alt cx.normalized_cache.find(t) {
2686-
some(t) { ret t; }
2687-
none { }
2688-
}
2689-
26902683
let t = alt get(t).struct {
26912684
ty_enum(did, r) {
26922685
alt r.self_r {
@@ -2700,9 +2693,7 @@ fn normalize_ty(cx: ctxt, t: t) -> t {
27002693
_ { t }
27012694
};
27022695
let sty = fold_sty(get(t).struct) {|t| normalize_ty(cx, t) };
2703-
let t_norm = mk_t(cx, sty);
2704-
cx.normalized_cache.insert(t, t_norm);
2705-
ret t_norm;
2696+
mk_t(cx, sty)
27062697
}
27072698

27082699
// Local Variables:

0 commit comments

Comments
 (0)