Skip to content

Commit

Permalink
tests: cleanup tests/ui/panic-runtime/lto-abort.rs
Browse files Browse the repository at this point in the history
- Ignore unused value, remove `#![allow(unused_variable)]`.
- Replace `ignore-*` with `needs-subprocess`.
  • Loading branch information
jieyouxu committed Jan 23, 2025
1 parent 1abb936 commit 91bd545
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/ui/panic-runtime/lto-abort.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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" {
Expand Down

0 comments on commit 91bd545

Please sign in to comment.