Skip to content

Commit c8e5851

Browse files
committed
improved debug output
1 parent 44e801a commit c8e5851

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/librustc_typeck/check/closure.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,12 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
595595
) -> ty::PolyFnSig<'tcx> {
596596
let astconv: &dyn AstConv<'_> = self;
597597

598+
debug!(
599+
"supplied_sig_of_closure(decl={:?}, body.generator_kind={:?})",
600+
decl,
601+
body.generator_kind,
602+
);
603+
598604
// First, convert the types that the user supplied (if any).
599605
let supplied_arguments = decl.inputs.iter().map(|a| astconv.ast_ty_to_ty(a));
600606
let supplied_return = match decl.output {

0 commit comments

Comments
 (0)