Skip to content

Commit 378741b

Browse files
nikomatsakispnkfelix
authored andcommitted
print more information for closures when -Zverbose is given
Ideally, we'd probably print the closure substs themselves actually.
1 parent f47ec2a commit 378741b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/librustc/util/ppaux.rs

+9
Original file line numberDiff line numberDiff line change
@@ -1430,6 +1430,15 @@ define_print! {
14301430
}
14311431
}
14321432

1433+
if cx.is_verbose {
1434+
write!(
1435+
f,
1436+
" closure_kind_ty={:?} closure_sig_ty={:?}",
1437+
substs.closure_kind_ty(did, tcx),
1438+
substs.closure_sig_ty(did, tcx),
1439+
)?;
1440+
}
1441+
14331442
write!(f, "]")
14341443
}),
14351444
Array(ty, sz) => {

0 commit comments

Comments
 (0)