about summary refs log tree commit diff
path: root/tests/ui/panic-runtime
diff options
context:
space:
mode:
author许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com>2025-01-23 16:19:42 +0800
committer许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com>2025-01-23 20:51:29 +0800
commita5d72f45ba19f22b8dba64623b712042e2ccd034 (patch)
tree7c4d71fd3d1718dbc4a4ea8e4279ff9df6d4c70c /tests/ui/panic-runtime
parent0cc392e5fab3d046b2973f71998609181753e299 (diff)
downloadrust-a5d72f45ba19f22b8dba64623b712042e2ccd034.tar.gz
rust-a5d72f45ba19f22b8dba64623b712042e2ccd034.zip
tests: cleanup `tests/ui/panic-runtime/lto-unwind.rs`
- Ignore an unused variable and remove `#![allow(unused_variables)]`.
- Replace `ignore-*` with `needs-subprocess`.
Diffstat (limited to 'tests/ui/panic-runtime')
-rw-r--r--tests/ui/panic-runtime/lto-unwind.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/ui/panic-runtime/lto-unwind.rs b/tests/ui/panic-runtime/lto-unwind.rs
index 5eab2bd56ed..93275052f85 100644
--- a/tests/ui/panic-runtime/lto-unwind.rs
+++ b/tests/ui/panic-runtime/lto-unwind.rs
@@ -1,11 +1,8 @@
 //@ run-pass
-#![allow(unused_variables)]
-
 //@ compile-flags:-C lto -C panic=unwind
 //@ needs-unwind
 //@ no-prefer-dynamic
-//@ ignore-emscripten no processes
-//@ ignore-sgx no processes
+//@ needs-subprocess
 
 use std::process::Command;
 use std::env;
@@ -20,7 +17,7 @@ impl Drop for Bomb {
 
 fn main() {
     let mut args = env::args_os();
-    let me = args.next().unwrap();
+    let _ = args.next().unwrap();
 
     if let Some(s) = args.next() {
         if &*s == "foo" {