about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-08-12 10:11:39 +0200
committerRalf Jung <post@ralfj.de>2024-08-12 10:11:39 +0200
commit7383401e08ee5e0195b44ebcd0b2dc9a026f7964 (patch)
tree02f0da7b9e2488ed7f4416c62441cc404e00bcae
parentc0c6f28cd6ac0d2541f4d546b6098874d375747d (diff)
downloadrust-7383401e08ee5e0195b44ebcd0b2dc9a026f7964.tar.gz
rust-7383401e08ee5e0195b44ebcd0b2dc9a026f7964.zip
clippy fix
-rw-r--r--src/tools/miri/src/eval.rs8
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).