Skip to content

Commit

Permalink
style nit
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Jun 10, 2016
1 parent 4fa328e commit 9c8f84c
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions src/bin/miri.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,22 +65,24 @@ fn interpret_start_points<'a, 'tcx>(

gecx.push_stack_frame(tcx.map.local_def_id(id), mir.span, CachedMir::Ref(mir), substs, return_ptr);

loop { match (step(&mut gecx), return_ptr) {
(Ok(true), _) => {},
(Ok(false), Some(ptr)) => if log_enabled!(::log::LogLevel::Debug) {
gecx.memory().dump(ptr.alloc_id);
break;
},
(Ok(false), None) => {
warn!("diverging function returned");
break;
},
// FIXME: diverging functions can end up here in some future miri
(Err(e), _) => {
report(tcx, &gecx, e);
break;
},
} }
loop {
match (step(&mut gecx), return_ptr) {
(Ok(true), _) => {},
(Ok(false), Some(ptr)) => if log_enabled!(::log::LogLevel::Debug) {
gecx.memory().dump(ptr.alloc_id);
break;
},
(Ok(false), None) => {
warn!("diverging function returned");
break;
},
// FIXME: diverging functions can end up here in some future miri
(Err(e), _) => {
report(tcx, &gecx, e);
break;
},
}
}
}
}
}
Expand Down

0 comments on commit 9c8f84c

Please sign in to comment.