Skip to content

Commit 2468b23

Browse files
committed
fix miri step debug printing
1 parent e862c01 commit 2468b23

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/librustc_mir/interpret/step.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,9 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
304304
if !self.stack.is_empty() {
305305
// This should change *something*
306306
debug_assert!(self.cur_frame() != old_stack || self.frame().block != old_bb);
307-
info!("// {:?}", self.frame().block);
307+
if let Some(block) = self.frame().block {
308+
info!("// executing {:?}", block);
309+
}
308310
}
309311
Ok(())
310312
}

0 commit comments

Comments
 (0)