Skip ffi-unwind lint test with -Cpanic=abort
This commit is contained in:
parent
49e6b7986a
commit
0cf28dc95d
2 changed files with 5 additions and 3 deletions
|
@ -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)]
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue