Skip to content

Commit a424090

Browse files
committed
Simplify debugging.
1 parent 48bae93 commit a424090

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

compiler/rustc_resolve/src/late/lifetimes.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1409,17 +1409,13 @@ impl<'a, 'tcx> LifetimeContext<'a, 'tcx> {
14091409
);
14101410
}
14111411

1412+
#[tracing::instrument(level = "debug", skip(self))]
14121413
fn visit_segment_args(
14131414
&mut self,
14141415
res: Res,
14151416
depth: usize,
14161417
generic_args: &'tcx hir::GenericArgs<'tcx>,
14171418
) {
1418-
debug!(
1419-
"visit_segment_args(res={:?}, depth={:?}, generic_args={:?})",
1420-
res, depth, generic_args,
1421-
);
1422-
14231419
if generic_args.parenthesized {
14241420
self.visit_fn_like_elision(
14251421
generic_args.inputs(),
@@ -1451,7 +1447,7 @@ impl<'a, 'tcx> LifetimeContext<'a, 'tcx> {
14511447
_ => None,
14521448
};
14531449

1454-
debug!("visit_segment_args: type_def_id={:?}", type_def_id);
1450+
debug!(?type_def_id);
14551451

14561452
// Compute a vector of defaults, one for each type parameter,
14571453
// per the rules given in RFCs 599 and 1156. Example:
@@ -1516,7 +1512,7 @@ impl<'a, 'tcx> LifetimeContext<'a, 'tcx> {
15161512
.collect()
15171513
});
15181514

1519-
debug!("visit_segment_args: object_lifetime_defaults={:?}", object_lifetime_defaults);
1515+
debug!(?object_lifetime_defaults);
15201516

15211517
let mut i = 0;
15221518
for arg in generic_args.args {

0 commit comments

Comments
 (0)