clippy fix

This commit is contained in:
Ralf Jung 2024-08-12 10:11:39 +02:00
parent c0c6f28cd6
commit 7383401e08

View File

@ -460,12 +460,8 @@ pub fn eval_entry<'tcx>(
ecx.handle_ice();
panic::resume_unwind(panic_payload)
});
let res = match res {
Err(res) => res,
// `Ok` can never happen
#[cfg(bootstrap)]
Ok(never) => match never {},
};
// `Ok` can never happen.
let Err(res) = res;
// 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).