Skip to content

Commit 0f84812

Browse files
author
Alexander Regueiro
committed
Standardised debug printing in conv_object_ty_poly_trait_ref fn.
1 parent b2f4eed commit 0f84812

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/librustc_typeck/astconv.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1411,8 +1411,10 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
14111411
// `dyn Trait + Send`.
14121412
auto_traits.sort_by_key(|i| i.def_id());
14131413
auto_traits.dedup_by_key(|i| i.def_id());
1414-
debug!("regular_traits: {:?}", regular_traits);
1415-
debug!("auto_traits: {:?}", auto_traits);
1414+
debug!(
1415+
"conv_object_ty_poly_trait_ref: regular_traits={:?} auto_traits={:?}",
1416+
regular_traits, auto_traits
1417+
);
14161418

14171419
// Transform a `PolyTraitRef` into a `PolyExistentialTraitRef` by
14181420
// removing the dummy `Self` type (`trait_object_dummy_self`).
@@ -1473,10 +1475,10 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
14731475
}
14741476
})
14751477
};
1476-
debug!("region_bound: {:?}", region_bound);
1478+
debug!("conv_object_ty_poly_trait_ref: region_bound={:?}", region_bound);
14771479

14781480
let ty = tcx.mk_dynamic(existential_predicates, region_bound);
1479-
debug!("trait_object_type: {:?}", ty);
1481+
debug!("conv_object_ty_poly_trait_ref: trait_object_type={:?}", ty);
14801482
ty
14811483
}
14821484

0 commit comments

Comments
 (0)