We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 33200a3 commit 401a243Copy full SHA for 401a243
src/librustc_typeck/astconv.rs
@@ -1523,12 +1523,13 @@ pub fn ast_ty_to_ty<'tcx>(this: &AstConv<'tcx>,
1523
ast_ty: &ast::Ty)
1524
-> Ty<'tcx>
1525
{
1526
- debug!("ast_ty_to_ty(ast_ty={:?})",
1527
- ast_ty);
+ debug!("ast_ty_to_ty(id={:?}, ast_ty={:?})",
+ ast_ty.id, ast_ty);
1528
1529
let tcx = this.tcx();
1530
1531
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);
1533
return ty;
1534
}
1535
@@ -1667,6 +1668,7 @@ pub fn ast_ty_to_ty<'tcx>(this: &AstConv<'tcx>,
1667
1668
1669
};
1670
1671
+ debug!("ast_ty_to_ty: id={:?} ty={:?}", ast_ty.id, typ);
1672
tcx.ast_ty_to_ty_cache.borrow_mut().insert(ast_ty.id, typ);
1673
return typ;
1674
0 commit comments