rustc: Add some more debugging to vtable

This commit is contained in:
Patrick Walton 2012-08-25 23:13:19 -07:00
parent 0de379fdf0
commit 80429dd7bd

View File

@ -294,8 +294,8 @@ fn connect_trait_tps(fcx: @fn_ctxt, expr: @ast::expr, impl_tys: ~[ty::t],
} }
fn early_resolve_expr(ex: @ast::expr, &&fcx: @fn_ctxt, is_early: bool) { fn early_resolve_expr(ex: @ast::expr, &&fcx: @fn_ctxt, is_early: bool) {
debug!("vtable: early_resolve_expr() ex with id %?: %s", debug!("vtable: early_resolve_expr() ex with id %? (early: %b): %s",
ex.id, expr_to_str(ex, fcx.tcx().sess.intr())); ex.id, is_early, expr_to_str(ex, fcx.tcx().sess.intr()));
let cx = fcx.ccx; let cx = fcx.ccx;
match ex.node { match ex.node {
ast::expr_path(*) => { ast::expr_path(*) => {