Skip to content

Commit 0cf28dc

Browse files
committed
Skip ffi-unwind lint test with -Cpanic=abort
1 parent 49e6b79 commit 0cf28dc

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Diff for: src/test/ui/unwind-abis/ffi-unwind-calls-lint.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
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)]

Diff for: src/test/ui/unwind-abis/ffi-unwind-calls-lint.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
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
33
|
44
LL | unsafe { foo(); }
55
| ^^^^^ call to foreign function with FFI-unwind ABI
66
|
77
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
99
|
1010
LL | #![warn(ffi_unwind_calls)]
1111
| ^^^^^^^^^^^^^^^^
1212

1313
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
1515
|
1616
LL | ptr();
1717
| ^^^^^ call to function pointer with FFI-unwind ABI

0 commit comments

Comments
 (0)