File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 11// build-pass
2+ // needs-unwind
3+ // ignore-wasm32-bare compiled with panic=abort by default
24
35#![ feature( c_unwind) ]
46#![ warn( ffi_unwind_calls) ]
Original file line number Diff line number Diff line change 11warning: call to foreign function with FFI-unwind ABI
2- --> $DIR/ffi-unwind-calls-lint.rs:19 :14
2+ --> $DIR/ffi-unwind-calls-lint.rs:21 :14
33 |
44LL | unsafe { foo(); }
55 | ^^^^^ call to foreign function with FFI-unwind ABI
66 |
77note: the lint level is defined here
8- --> $DIR/ffi-unwind-calls-lint.rs:4 :9
8+ --> $DIR/ffi-unwind-calls-lint.rs:6 :9
99 |
1010LL | #![warn(ffi_unwind_calls)]
1111 | ^^^^^^^^^^^^^^^^
1212
1313warning: call to function pointer with FFI-unwind ABI
14- --> $DIR/ffi-unwind-calls-lint.rs:23 :5
14+ --> $DIR/ffi-unwind-calls-lint.rs:25 :5
1515 |
1616LL | ptr();
1717 | ^^^^^ call to function pointer with FFI-unwind ABI
You can’t perform that action at this time.
0 commit comments