Skip to content

Commit ab80162

Browse files
nikomatsakislqd
authored andcommitted
add a lot more debug! to try_report_placeholders_trait
1 parent c5dea57 commit ab80162

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/librustc/infer/error_reporting/nice_region_error/placeholder_error.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,15 @@ impl NiceRegionError<'me, 'gcx, 'tcx> {
206206
expected_substs: &'tcx Substs<'tcx>,
207207
actual_substs: &'tcx Substs<'tcx>,
208208
) -> 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+
209218
let mut err = self.tcx().sess.struct_span_err(
210219
cause.span(&self.tcx()),
211220
&format!(
@@ -276,6 +285,12 @@ impl NiceRegionError<'me, 'gcx, 'tcx> {
276285
.tcx()
277286
.any_free_region_meets(&actual_trait_ref.self_ty(), |r| Some(r) == vid);
278287

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+
279294
RegionHighlightMode::maybe_highlighting_region(sub_placeholder, has_sub, || {
280295
RegionHighlightMode::maybe_highlighting_region(sup_placeholder, has_sup, || {
281296
match (has_sub, has_sup) {

0 commit comments

Comments
 (0)