Skip to content

Commit 7c1c2a7

Browse files
committed
---
yaml --- r: 44429 b: refs/heads/master c: 16da4e1 h: refs/heads/master i: 44427: 8e6e197 v: v3
1 parent 4ec4f1c commit 7c1c2a7

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
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: 0419e36b76a3d00dd313dcb3b079604d3440d2ff
2+
refs/heads/master: 16da4e15af02f92d4c7e7cfe36344a276096585d
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a6d9689399d091c3265f00434a69c551a61c28dc
55
refs/heads/try: ef355f6332f83371e4acf04fc4eb940ab41d78d3

trunk/src/librustc/middle/ty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ struct ctxt_ {
262262
needs_drop_cache: HashMap<t, bool>,
263263
needs_unwind_cleanup_cache: HashMap<t, bool>,
264264
mut tc_cache: LinearMap<uint, TypeContents>,
265-
ast_ty_to_ty_cache: HashMap<@ast::Ty, ast_ty_to_ty_cache_entry>,
265+
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]>,
268268
ty_param_bounds: HashMap<ast::node_id, param_bounds>,

trunk/src/librustc/middle/typeck/astconv.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ pub fn ast_ty_to_ty<AC: AstConv, RS: region_scope Copy Durable>(
277277

278278
let tcx = self.tcx();
279279

280-
match tcx.ast_ty_to_ty_cache.find(&ast_ty) {
280+
match tcx.ast_ty_to_ty_cache.find(&ast_ty.id) {
281281
Some(ty::atttce_resolved(ty)) => return ty,
282282
Some(ty::atttce_unresolved) => {
283283
tcx.sess.span_fatal(ast_ty.span, ~"illegal recursive type; \
@@ -287,7 +287,7 @@ pub fn ast_ty_to_ty<AC: AstConv, RS: region_scope Copy Durable>(
287287
None => { /* go on */ }
288288
}
289289

290-
tcx.ast_ty_to_ty_cache.insert(ast_ty, ty::atttce_unresolved);
290+
tcx.ast_ty_to_ty_cache.insert(ast_ty.id, ty::atttce_unresolved);
291291
let typ = match /*bad*/copy ast_ty.node {
292292
ast::ty_nil => ty::mk_nil(tcx),
293293
ast::ty_bot => ty::mk_bot(tcx),
@@ -409,7 +409,7 @@ pub fn ast_ty_to_ty<AC: AstConv, RS: region_scope Copy Durable>(
409409
}
410410
};
411411

412-
tcx.ast_ty_to_ty_cache.insert(ast_ty, ty::atttce_resolved(typ));
412+
tcx.ast_ty_to_ty_cache.insert(ast_ty.id, ty::atttce_resolved(typ));
413413
return typ;
414414
}
415415

0 commit comments

Comments
 (0)