Skip to content

Commit 975c073

Browse files
committed
tests: cleanup tests/ui/panic-runtime/lto-abort.rs
- Ignore unused value, remove `#![allow(unused_variable)]`. - Replace `ignore-*` with `needs-subprocess`.
1 parent e135dff commit 975c073

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/ui/panic-runtime/lto-abort.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
//@ run-pass
2-
#![allow(unused_variables)]
32
//@ compile-flags:-C lto -C panic=abort
43
//@ no-prefer-dynamic
5-
//@ ignore-wasm32 no processes
6-
//@ ignore-sgx no processes
4+
//@ needs-subprocess
75

86
use std::process::Command;
97
use std::env;
@@ -18,7 +16,7 @@ impl Drop for Bomb {
1816

1917
fn main() {
2018
let mut args = env::args_os();
21-
let me = args.next().unwrap();
19+
let _ = args.next().unwrap();
2220

2321
if let Some(s) = args.next() {
2422
if &*s == "foo" {

0 commit comments

Comments
 (0)