Skip to content

Commit 781b5cc

Browse files
committed
---
yaml --- r: 226975 b: refs/heads/master c: 401a243 h: refs/heads/master i: 226973: 5de3317 226971: df9ec2b 226967: 7c973b1 226959: 340a2b5 226943: 79d2d27 v: v3
1 parent 3fdf314 commit 781b5cc

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-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: 33200a369ae1aee29e2bcf2aa67f746ddc5e16cc
2+
refs/heads/master: 401a2435521ad63a0d780a719f4f5cf9f8b6ae90
33
refs/heads/snap-stage3: 1af31d4974e33027a68126fa5a5a3c2c6491824f
44
refs/heads/try: b53c0f93eedcdedd4fd89bccc5a3a09d1c5cd23e
55
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

trunk/src/librustc_typeck/astconv.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1523,12 +1523,13 @@ pub fn ast_ty_to_ty<'tcx>(this: &AstConv<'tcx>,
15231523
ast_ty: &ast::Ty)
15241524
-> Ty<'tcx>
15251525
{
1526-
debug!("ast_ty_to_ty(ast_ty={:?})",
1527-
ast_ty);
1526+
debug!("ast_ty_to_ty(id={:?}, ast_ty={:?})",
1527+
ast_ty.id, ast_ty);
15281528

15291529
let tcx = this.tcx();
15301530

15311531
if let Some(&ty) = tcx.ast_ty_to_ty_cache.borrow().get(&ast_ty.id) {
1532+
debug!("ast_ty_to_ty: id={:?} ty={:?} (cached)", ast_ty.id, ty);
15321533
return ty;
15331534
}
15341535

@@ -1667,6 +1668,7 @@ pub fn ast_ty_to_ty<'tcx>(this: &AstConv<'tcx>,
16671668
}
16681669
};
16691670

1671+
debug!("ast_ty_to_ty: id={:?} ty={:?}", ast_ty.id, typ);
16701672
tcx.ast_ty_to_ty_cache.borrow_mut().insert(ast_ty.id, typ);
16711673
return typ;
16721674
}

0 commit comments

Comments
 (0)