mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
fix build with bootstrap compiler
This commit is contained in:
parent
c74ffd88cb
commit
0708b289b7
@ -458,7 +458,14 @@ pub fn eval_entry<'tcx>(
|
||||
panic::resume_unwind(panic_payload)
|
||||
});
|
||||
// `Ok` can never happen.
|
||||
#[cfg(not(bootstrap))]
|
||||
let Err(res) = res;
|
||||
#[cfg(bootstrap)]
|
||||
let res = match res {
|
||||
Err(res) => res,
|
||||
// `Ok` can never happen
|
||||
Ok(never) => match never {},
|
||||
};
|
||||
|
||||
// Machine cleanup. Only do this if all threads have terminated; threads that are still running
|
||||
// might cause Stacked Borrows errors (https://github.com/rust-lang/miri/issues/2396).
|
||||
|
Loading…
Reference in New Issue
Block a user