Skip to content

Commit 7383401

Browse files
committed
clippy fix
1 parent c0c6f28 commit 7383401

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/tools/miri/src/eval.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -460,12 +460,8 @@ pub fn eval_entry<'tcx>(
460460
ecx.handle_ice();
461461
panic::resume_unwind(panic_payload)
462462
});
463-
let res = match res {
464-
Err(res) => res,
465-
// `Ok` can never happen
466-
#[cfg(bootstrap)]
467-
Ok(never) => match never {},
468-
};
463+
// `Ok` can never happen.
464+
let Err(res) = res;
469465

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

0 commit comments

Comments
 (0)