Skip to content

Commit c650ed8

Browse files
authored
Rollup merge of rust-lang#40928 - GAJaloyan:patch-2, r=eddyb
adding debug in consume_body function When in debug_assertions=true mode, the function consume_body lacks some debug output, which makes it harder to follow the control flow. This commit adds this needed debug.
2 parents 4af41b4 + ea28196 commit c650ed8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/librustc/middle/expr_use_visitor.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,8 @@ impl<'a, 'gcx, 'tcx> ExprUseVisitor<'a, 'gcx, 'tcx> {
288288
}
289289

290290
pub fn consume_body(&mut self, body: &hir::Body) {
291+
debug!("consume_body(body={:?})", body);
292+
291293
for arg in &body.arguments {
292294
let arg_ty = return_if_err!(self.mc.infcx.node_ty(arg.pat.id));
293295

0 commit comments

Comments
 (0)