Abort miri if the Rust code had compilation errors.
This commit is contained in:
parent
f439a97cf4
commit
877d2d900e
1 changed files with 1 additions and 0 deletions
|
@ -16,6 +16,7 @@ impl<'a> CompilerCalls<'a> for MiriCompilerCalls {
|
||||||
control.after_analysis.stop = Compilation::Stop;
|
control.after_analysis.stop = Compilation::Stop;
|
||||||
|
|
||||||
control.after_analysis.callback = Box::new(|state| {
|
control.after_analysis.callback = Box::new(|state| {
|
||||||
|
state.session.abort_if_errors();
|
||||||
interpreter::interpret_start_points(state.tcx.unwrap(), state.mir_map.unwrap());
|
interpreter::interpret_start_points(state.tcx.unwrap(), state.mir_map.unwrap());
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue