Skip ffi-unwind lint test with -Cpanic=abort

This commit is contained in:
Gary Guo 2022-06-30 02:12:39 +01:00
parent 49e6b7986a
commit 0cf28dc95d
2 changed files with 5 additions and 3 deletions

View File

@ -1,4 +1,6 @@
// build-pass
// needs-unwind
// ignore-wasm32-bare compiled with panic=abort by default
#![feature(c_unwind)]
#![warn(ffi_unwind_calls)]

View File

@ -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