Skip to content

Commit 2f353d1

Browse files
committed
Add more debug calls
1 parent cab6740 commit 2f353d1

File tree

1 file changed

+5
-4
lines changed
  • compiler/rustc_ast_lowering/src

1 file changed

+5
-4
lines changed

compiler/rustc_ast_lowering/src/lib.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1395,6 +1395,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
13951395
let opaque_ty_span = self.mark_span_with_reason(DesugaringKind::OpaqueTy, span, None);
13961396

13971397
let opaque_ty_def_id = self.local_def_id(opaque_ty_node_id);
1398+
debug!(?opaque_ty_def_id);
13981399

13991400
// Contains the new lifetime definitions created for the TAIT (if any).
14001401
let mut collected_lifetimes = Vec::new();
@@ -1454,11 +1455,12 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
14541455
}
14551456
},
14561457
));
1457-
debug!("lower_opaque_impl_trait: lifetime_defs={:#?}", lifetime_defs);
1458+
debug!(?lifetime_defs);
14581459

14591460
// Then when we lower the param bounds, references to 'a are remapped to 'a1, so we
14601461
// get back Debug + 'a1, which is suitable for use on the TAIT.
14611462
let hir_bounds = lctx.lower_param_bounds(bounds, itctx);
1463+
debug!(?hir_bounds);
14621464

14631465
let opaque_ty_item = hir::OpaqueTy {
14641466
generics: self.arena.alloc(hir::Generics {
@@ -1471,8 +1473,8 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
14711473
bounds: hir_bounds,
14721474
origin,
14731475
};
1476+
debug!(?opaque_ty_item);
14741477

1475-
trace!("lower_opaque_impl_trait: {:#?}", opaque_ty_def_id);
14761478
lctx.generate_opaque_type(opaque_ty_def_id, opaque_ty_item, span, opaque_ty_span)
14771479
})
14781480
});
@@ -1493,8 +1495,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
14931495
let l = self.new_named_lifetime(lifetime.id, id, span, ident);
14941496
hir::GenericArg::Lifetime(l)
14951497
}));
1496-
1497-
debug!("lower_opaque_impl_trait: lifetimes={:#?}", lifetimes);
1498+
debug!(?lifetimes);
14981499

14991500
// `impl Trait` now just becomes `Foo<'a, 'b, ..>`.
15001501
hir::TyKind::OpaqueDef(hir::ItemId { def_id: opaque_ty_def_id }, lifetimes)

0 commit comments

Comments
 (0)