Skip to content

Commit 0708b28

Browse files
committed
fix build with bootstrap compiler
1 parent c74ffd8 commit 0708b28

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/tools/miri/src/eval.rs

+7
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,14 @@ pub fn eval_entry<'tcx>(
458458
panic::resume_unwind(panic_payload)
459459
});
460460
// `Ok` can never happen.
461+
#[cfg(not(bootstrap))]
461462
let Err(res) = res;
463+
#[cfg(bootstrap)]
464+
let res = match res {
465+
Err(res) => res,
466+
// `Ok` can never happen
467+
Ok(never) => match never {},
468+
};
462469

463470
// Machine cleanup. Only do this if all threads have terminated; threads that are still running
464471
// might cause Stacked Borrows errors (https://github.com/rust-lang/miri/issues/2396).

0 commit comments

Comments
 (0)