From 0cf28dc95d8396aa207bddd2d4424963b64d0c16 Mon Sep 17 00:00:00 2001 From: Gary Guo Date: Thu, 30 Jun 2022 02:12:39 +0100 Subject: [PATCH] Skip ffi-unwind lint test with `-Cpanic=abort` --- src/test/ui/unwind-abis/ffi-unwind-calls-lint.rs | 2 ++ src/test/ui/unwind-abis/ffi-unwind-calls-lint.stderr | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/test/ui/unwind-abis/ffi-unwind-calls-lint.rs b/src/test/ui/unwind-abis/ffi-unwind-calls-lint.rs index 67c20e9eac5..dadf4b12187 100644 --- a/src/test/ui/unwind-abis/ffi-unwind-calls-lint.rs +++ b/src/test/ui/unwind-abis/ffi-unwind-calls-lint.rs @@ -1,4 +1,6 @@ // build-pass +// needs-unwind +// ignore-wasm32-bare compiled with panic=abort by default #![feature(c_unwind)] #![warn(ffi_unwind_calls)] diff --git a/src/test/ui/unwind-abis/ffi-unwind-calls-lint.stderr b/src/test/ui/unwind-abis/ffi-unwind-calls-lint.stderr index cf8a7782e35..ed41cb74623 100644 --- a/src/test/ui/unwind-abis/ffi-unwind-calls-lint.stderr +++ b/src/test/ui/unwind-abis/ffi-unwind-calls-lint.stderr @@ -1,17 +1,17 @@ warning: call to foreign function with FFI-unwind ABI - --> $DIR/ffi-unwind-calls-lint.rs:19:14 + --> $DIR/ffi-unwind-calls-lint.rs:21:14 | LL | unsafe { foo(); } | ^^^^^ call to foreign function with FFI-unwind ABI | note: the lint level is defined here - --> $DIR/ffi-unwind-calls-lint.rs:4:9 + --> $DIR/ffi-unwind-calls-lint.rs:6:9 | LL | #![warn(ffi_unwind_calls)] | ^^^^^^^^^^^^^^^^ warning: call to function pointer with FFI-unwind ABI - --> $DIR/ffi-unwind-calls-lint.rs:23:5 + --> $DIR/ffi-unwind-calls-lint.rs:25:5 | LL | ptr(); | ^^^^^ call to function pointer with FFI-unwind ABI