2020-04-06 05:00:42 -05:00
|
|
|
warning: `rust_task_is_unwinding` redeclared with a different signature
|
|
|
|
--> $DIR/issue-1866.rs:23:13
|
|
|
|
|
|
|
|
|
LL | pub fn rust_task_is_unwinding(rt: *const rust_task) -> bool;
|
2023-07-15 05:41:33 -05:00
|
|
|
| ----------------------------------------------------------- `rust_task_is_unwinding` previously declared here
|
2020-04-06 05:00:42 -05:00
|
|
|
...
|
|
|
|
LL | pub fn rust_task_is_unwinding(rt: *const rust_task) -> bool;
|
2023-07-15 05:41:33 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration
|
2020-04-06 05:00:42 -05:00
|
|
|
|
|
2022-09-18 10:55:36 -05:00
|
|
|
= note: expected `unsafe extern "C" fn(*const usize) -> bool`
|
|
|
|
found `unsafe extern "C" fn(*const bool) -> bool`
|
2020-04-06 05:00:42 -05:00
|
|
|
note: the lint level is defined here
|
|
|
|
--> $DIR/issue-1866.rs:4:9
|
|
|
|
|
|
2020-06-27 19:11:04 -05:00
|
|
|
LL | #![warn(clashing_extern_declarations)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2020-04-06 05:00:42 -05:00
|
|
|
|
|
|
|
warning: 1 warning emitted
|
|
|
|
|