@@ -206,6 +206,15 @@ impl NiceRegionError<'me, 'gcx, 'tcx> {
206
206
expected_substs : & ' tcx Substs < ' tcx > ,
207
207
actual_substs : & ' tcx Substs < ' tcx > ,
208
208
) -> ErrorReported {
209
+ debug ! ( "try_report_placeholders_trait(\
210
+ vid={:?}, \
211
+ sub_placeholder={:?}, \
212
+ sup_placeholder={:?}, \
213
+ trait_def_id={:?}, \
214
+ expected_substs={:?}, \
215
+ actual_substs={:?})",
216
+ vid, sub_placeholder, sup_placeholder, trait_def_id, expected_substs, actual_substs) ;
217
+
209
218
let mut err = self . tcx ( ) . sess . struct_span_err (
210
219
cause. span ( & self . tcx ( ) ) ,
211
220
& format ! (
@@ -276,6 +285,12 @@ impl NiceRegionError<'me, 'gcx, 'tcx> {
276
285
. tcx ( )
277
286
. any_free_region_meets ( & actual_trait_ref. self_ty ( ) , |r| Some ( r) == vid) ;
278
287
288
+ debug ! ( "try_report_placeholders_trait: actual_has_vid={:?}" , actual_has_vid) ;
289
+ debug ! ( "try_report_placeholders_trait: expected_has_vid={:?}" , expected_has_vid) ;
290
+ debug ! ( "try_report_placeholders_trait: has_sub={:?}" , has_sub) ;
291
+ debug ! ( "try_report_placeholders_trait: has_sup={:?}" , has_sup) ;
292
+ debug ! ( "try_report_placeholders_trait: self_ty_has_vid={:?}" , self_ty_has_vid) ;
293
+
279
294
RegionHighlightMode :: maybe_highlighting_region ( sub_placeholder, has_sub, || {
280
295
RegionHighlightMode :: maybe_highlighting_region ( sup_placeholder, has_sup, || {
281
296
match ( has_sub, has_sup) {
0 commit comments