Skip to content

Commit 18adc45

Browse files
Improve debug log in MIR type check
1 parent 1a764a7 commit 18adc45

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/librustc_mir/borrow_check/type_check/input_output.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,16 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
6464
}
6565
};
6666

67+
debug!(
68+
"equate_inputs_and_outputs: normalized_input_tys = {:?}, local_decls = {:?}",
69+
normalized_input_tys, body.local_decls
70+
);
71+
6772
// Equate expected input tys with those in the MIR.
6873
for (&normalized_input_ty, argument_index) in normalized_input_tys.iter().zip(0..) {
6974
// In MIR, argument N is stored in local N+1.
7075
let local = Local::new(argument_index + 1);
7176

72-
debug!("equate_inputs_and_outputs: normalized_input_ty = {:?}", normalized_input_ty);
73-
7477
let mir_input_ty = body.local_decls[local].ty;
7578
let mir_input_span = body.local_decls[local].source_info.span;
7679
self.equate_normalized_input_or_output(

0 commit comments

Comments
 (0)