Skip ffi-unwind lint test with -Cpanic=abort
This commit is contained in:
parent
49e6b7986a
commit
0cf28dc95d
@ -1,4 +1,6 @@
|
||||
// build-pass
|
||||
// needs-unwind
|
||||
// ignore-wasm32-bare compiled with panic=abort by default
|
||||
|
||||
#![feature(c_unwind)]
|
||||
#![warn(ffi_unwind_calls)]
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user