1
Fork 0

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 // build-pass
// needs-unwind
// ignore-wasm32-bare compiled with panic=abort by default
#![feature(c_unwind)] #![feature(c_unwind)]
#![warn(ffi_unwind_calls)] #![warn(ffi_unwind_calls)]

View file

@ -1,17 +1,17 @@
warning: call to foreign function with FFI-unwind ABI 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(); } LL | unsafe { foo(); }
| ^^^^^ call to foreign function with FFI-unwind ABI | ^^^^^ call to foreign function with FFI-unwind ABI
| |
note: the lint level is defined here 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)] LL | #![warn(ffi_unwind_calls)]
| ^^^^^^^^^^^^^^^^ | ^^^^^^^^^^^^^^^^
warning: call to function pointer with FFI-unwind ABI 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(); LL | ptr();
| ^^^^^ call to function pointer with FFI-unwind ABI | ^^^^^ call to function pointer with FFI-unwind ABI