@@ -1395,6 +1395,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
1395
1395
let opaque_ty_span = self . mark_span_with_reason ( DesugaringKind :: OpaqueTy , span, None ) ;
1396
1396
1397
1397
let opaque_ty_def_id = self . local_def_id ( opaque_ty_node_id) ;
1398
+ debug ! ( ?opaque_ty_def_id) ;
1398
1399
1399
1400
// Contains the new lifetime definitions created for the TAIT (if any).
1400
1401
let mut collected_lifetimes = Vec :: new ( ) ;
@@ -1454,11 +1455,12 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
1454
1455
}
1455
1456
} ,
1456
1457
) ) ;
1457
- debug ! ( "lower_opaque_impl_trait: lifetime_defs={:#?}" , lifetime_defs) ;
1458
+ debug ! ( ? lifetime_defs) ;
1458
1459
1459
1460
// Then when we lower the param bounds, references to 'a are remapped to 'a1, so we
1460
1461
// get back Debug + 'a1, which is suitable for use on the TAIT.
1461
1462
let hir_bounds = lctx. lower_param_bounds ( bounds, itctx) ;
1463
+ debug ! ( ?hir_bounds) ;
1462
1464
1463
1465
let opaque_ty_item = hir:: OpaqueTy {
1464
1466
generics : self . arena . alloc ( hir:: Generics {
@@ -1471,8 +1473,8 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
1471
1473
bounds : hir_bounds,
1472
1474
origin,
1473
1475
} ;
1476
+ debug ! ( ?opaque_ty_item) ;
1474
1477
1475
- trace ! ( "lower_opaque_impl_trait: {:#?}" , opaque_ty_def_id) ;
1476
1478
lctx. generate_opaque_type ( opaque_ty_def_id, opaque_ty_item, span, opaque_ty_span)
1477
1479
} )
1478
1480
} ) ;
@@ -1493,8 +1495,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
1493
1495
let l = self . new_named_lifetime ( lifetime. id , id, span, ident) ;
1494
1496
hir:: GenericArg :: Lifetime ( l)
1495
1497
} ) ) ;
1496
-
1497
- debug ! ( "lower_opaque_impl_trait: lifetimes={:#?}" , lifetimes) ;
1498
+ debug ! ( ?lifetimes) ;
1498
1499
1499
1500
// `impl Trait` now just becomes `Foo<'a, 'b, ..>`.
1500
1501
hir:: TyKind :: OpaqueDef ( hir:: ItemId { def_id : opaque_ty_def_id } , lifetimes)
0 commit comments