diff options
| author | Ralf Jung <post@ralfj.de> | 2024-08-12 10:11:39 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-08-12 10:11:39 +0200 |
| commit | 7383401e08ee5e0195b44ebcd0b2dc9a026f7964 (patch) | |
| tree | 02f0da7b9e2488ed7f4416c62441cc404e00bcae | |
| parent | c0c6f28cd6ac0d2541f4d546b6098874d375747d (diff) | |
| download | rust-7383401e08ee5e0195b44ebcd0b2dc9a026f7964.tar.gz rust-7383401e08ee5e0195b44ebcd0b2dc9a026f7964.zip | |
clippy fix
| -rw-r--r-- | src/tools/miri/src/eval.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/tools/miri/src/eval.rs b/src/tools/miri/src/eval.rs index d781188cd0c..d75202b0a30 100644 --- a/src/tools/miri/src/eval.rs +++ b/src/tools/miri/src/eval.rs @@ -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). |
