Skip to content

Commit

Permalink
print more information for closures when -Zverbose is given
Browse files Browse the repository at this point in the history
Ideally, we'd probably print the closure substs themselves actually.
  • Loading branch information
nikomatsakis authored and pnkfelix committed Feb 15, 2019
1 parent f47ec2a commit 378741b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/librustc/util/ppaux.rs
Expand Up @@ -1430,6 +1430,15 @@ define_print! {
} }
} }


if cx.is_verbose {
write!(
f,
" closure_kind_ty={:?} closure_sig_ty={:?}",
substs.closure_kind_ty(did, tcx),
substs.closure_sig_ty(did, tcx),
)?;
}

write!(f, "]") write!(f, "]")
}), }),
Array(ty, sz) => { Array(ty, sz) => {
Expand Down

0 comments on commit 378741b

Please sign in to comment.