File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
// build-pass
2
+ // needs-unwind
3
+ // ignore-wasm32-bare compiled with panic=abort by default
2
4
3
5
#![ feature( c_unwind) ]
4
6
#![ warn( ffi_unwind_calls) ]
Original file line number Diff line number Diff line change 1
1
warning: 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
3
3
|
4
4
LL | unsafe { foo(); }
5
5
| ^^^^^ call to foreign function with FFI-unwind ABI
6
6
|
7
7
note: the lint level is defined here
8
- --> $DIR/ffi-unwind-calls-lint.rs:4 :9
8
+ --> $DIR/ffi-unwind-calls-lint.rs:6 :9
9
9
|
10
10
LL | #![warn(ffi_unwind_calls)]
11
11
| ^^^^^^^^^^^^^^^^
12
12
13
13
warning: 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
15
15
|
16
16
LL | ptr();
17
17
| ^^^^^ call to function pointer with FFI-unwind ABI
You can’t perform that action at this time.
0 commit comments