diff options
| author | 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com> | 2025-01-23 16:26:14 +0800 |
|---|---|---|
| committer | 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com> | 2025-01-23 20:51:29 +0800 |
| commit | 91bd54547582e4a0caf57c03c878f0c50636f9a6 (patch) | |
| tree | 9a20dab27028c2558f84a85e5254620b587983dd /tests/ui/panic-runtime | |
| parent | 1abb93608f2275cecf9bd7a8c83f46cc74f11e3a (diff) | |
tests: cleanup `tests/ui/panic-runtime/lto-abort.rs`
- Ignore unused value, remove `#![allow(unused_variable)]`. - Replace `ignore-*` with `needs-subprocess`.
Diffstat (limited to 'tests/ui/panic-runtime')
| -rw-r--r-- | tests/ui/panic-runtime/lto-abort.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/ui/panic-runtime/lto-abort.rs b/tests/ui/panic-runtime/lto-abort.rs index c66b6a60c73..cf15ae6435b 100644 --- a/tests/ui/panic-runtime/lto-abort.rs +++ b/tests/ui/panic-runtime/lto-abort.rs @@ -1,9 +1,7 @@ //@ run-pass -#![allow(unused_variables)] //@ compile-flags:-C lto -C panic=abort //@ no-prefer-dynamic -//@ ignore-wasm32 no processes -//@ ignore-sgx no processes +//@ needs-subprocess use std::process::Command; use std::env; @@ -18,7 +16,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" { |
