Skip to content

Commit 7cf63a2

Browse files
committed
more debug dumping in trans
1 parent d3afbd6 commit 7cf63a2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/librustc_trans/common.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1061,7 +1061,7 @@ pub fn fulfill_obligation<'a, 'tcx>(scx: &SharedCrateContext<'a, 'tcx>,
10611061
let trait_ref = tcx.erase_regions(&trait_ref);
10621062

10631063
scx.trait_cache().memoize(trait_ref, || {
1064-
debug!("trans fulfill_obligation: trait_ref={:?} def_id={:?}",
1064+
debug!("trans::fulfill_obligation(trait_ref={:?}, def_id={:?})",
10651065
trait_ref, trait_ref.def_id());
10661066

10671067
// Do the initial selection for the obligation. This yields the
@@ -1096,11 +1096,14 @@ pub fn fulfill_obligation<'a, 'tcx>(scx: &SharedCrateContext<'a, 'tcx>,
10961096
}
10971097
};
10981098

1099+
debug!("fulfill_obligation: selection={:?}", selection);
1100+
10991101
// Currently, we use a fulfillment context to completely resolve
11001102
// all nested obligations. This is because they can inform the
11011103
// inference of the impl's type parameters.
11021104
let mut fulfill_cx = traits::FulfillmentContext::new();
11031105
let vtable = selection.map(|predicate| {
1106+
debug!("fulfill_obligation: register_predicate_obligation {:?}", predicate);
11041107
fulfill_cx.register_predicate_obligation(&infcx, predicate);
11051108
});
11061109
let vtable = infcx.drain_fulfillment_cx_or_panic(span, &mut fulfill_cx, &vtable);

0 commit comments

Comments
 (0)