Skip to content

Commit a5d72f4

Browse files
committed
tests: cleanup tests/ui/panic-runtime/lto-unwind.rs
- Ignore an unused variable and remove `#![allow(unused_variables)]`. - Replace `ignore-*` with `needs-subprocess`.
1 parent 0cc392e commit a5d72f4

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
//@ run-pass
2-
#![allow(unused_variables)]
3-
42
//@ compile-flags:-C lto -C panic=unwind
53
//@ needs-unwind
64
//@ no-prefer-dynamic
7-
//@ ignore-emscripten no processes
8-
//@ ignore-sgx no processes
5+
//@ needs-subprocess
96

107
use std::process::Command;
118
use std::env;
@@ -20,7 +17,7 @@ impl Drop for Bomb {
2017

2118
fn main() {
2219
let mut args = env::args_os();
23-
let me = args.next().unwrap();
20+
let _ = args.next().unwrap();
2421

2522
if let Some(s) = args.next() {
2623
if &*s == "foo" {

0 commit comments

Comments
 (0)