Skip to content

Commit 6a6d2f4

Browse files
committed
dump out the exact state in error reporting debugs
1 parent 995192a commit 6a6d2f4

File tree

1 file changed

+10
-0
lines changed
  • src/librustc/infer/error_reporting

1 file changed

+10
-0
lines changed

src/librustc/infer/error_reporting/mod.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1306,6 +1306,16 @@ impl<'a, 'gcx, 'tcx> InferCtxt<'a, 'gcx, 'tcx> {
13061306

13071307
match (&sup_origin, &sub_origin) {
13081308
(&infer::Subtype(ref sup_trace), &infer::Subtype(ref sub_trace)) => {
1309+
debug!("report_sub_sup_conflict: var_origin={:?}", var_origin);
1310+
debug!("report_sub_sup_conflict: sub_region={:?}", sub_region);
1311+
debug!("report_sub_sup_conflict: sub_origin={:?}", sub_origin);
1312+
debug!("report_sub_sup_conflict: sup_region={:?}", sup_region);
1313+
debug!("report_sub_sup_conflict: sup_origin={:?}", sup_origin);
1314+
debug!("report_sub_sup_conflict: sup_trace={:?}", sup_trace);
1315+
debug!("report_sub_sup_conflict: sub_trace={:?}", sub_trace);
1316+
debug!("report_sub_sup_conflict: sup_trace.values={:?}", sup_trace.values);
1317+
debug!("report_sub_sup_conflict: sub_trace.values={:?}", sub_trace.values);
1318+
13091319
if let (Some((sup_expected, sup_found)), Some((sub_expected, sub_found))) = (
13101320
self.values_str(&sup_trace.values),
13111321
self.values_str(&sub_trace.values),

0 commit comments

Comments
 (0)