We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3411625 commit 7addae0Copy full SHA for 7addae0
src/tools/miri/src/bin/miri.rs
@@ -68,7 +68,7 @@ impl rustc_driver::Callbacks for MiriCompilerCalls {
68
queries: &'tcx rustc_interface::Queries<'tcx>,
69
) -> Compilation {
70
queries.global_ctxt().unwrap().enter(|tcx| {
71
- if tcx.sess.dcx().has_errors().is_some() {
+ if tcx.sess.dcx().has_errors_or_delayed_bugs().is_some() {
72
tcx.dcx().fatal("miri cannot be run on programs that fail compilation");
73
}
74
0 commit comments