]> git.lizzy.rs Git - rust.git/commitdiff
Abort miri if the Rust code had compilation errors.
authorScott Olson <scott@solson.me>
Mon, 21 Mar 2016 08:54:20 +0000 (02:54 -0600)
committerScott Olson <scott@solson.me>
Mon, 21 Mar 2016 08:54:20 +0000 (02:54 -0600)
src/bin/miri.rs

index 7867526f26d429c11585f0d30ed226a5d022eed2..8efa1a6864def8eb8872704c5be83b1056011e0b 100644 (file)
@@ -16,6 +16,7 @@ fn build_controller(&mut self, _: &Session) -> driver::CompileController<'a> {
         control.after_analysis.stop = Compilation::Stop;
 
         control.after_analysis.callback = Box::new(|state| {
+            state.session.abort_if_errors();
             interpreter::interpret_start_points(state.tcx.unwrap(), state.mir_map.unwrap());
         });