Skip to content

Commit 7addae0

Browse files
committed
Stop miri if delayed bugs are present.
Seems wise, since it shouldn't proceed in that case.
1 parent 3411625 commit 7addae0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/miri/src/bin/miri.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ impl rustc_driver::Callbacks for MiriCompilerCalls {
6868
queries: &'tcx rustc_interface::Queries<'tcx>,
6969
) -> Compilation {
7070
queries.global_ctxt().unwrap().enter(|tcx| {
71-
if tcx.sess.dcx().has_errors().is_some() {
71+
if tcx.sess.dcx().has_errors_or_delayed_bugs().is_some() {
7272
tcx.dcx().fatal("miri cannot be run on programs that fail compilation");
7373
}
7474

0 commit comments

Comments
 (0)