Skip to content
Permalink
Browse files

print more information for closures when `-Zverbose` is given

Ideally, we'd probably print the closure substs themselves actually.
  • Loading branch information...
nikomatsakis authored and pnkfelix committed Feb 1, 2019
1 parent f47ec2a commit 378741b703d0501b6ff50a3cf5cde9da8319195d
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/librustc/util/ppaux.rs
@@ -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, "]")
}),
Array(ty, sz) => {

0 comments on commit 378741b

Please sign in to comment.
You can’t perform that action at this time.