2020-04-06 10:00:42 +00: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;
|
|
|
|
| ------------------------------------------------------------ `rust_task_is_unwinding` previously declared here
|
|
|
|
...
|
|
|
|
LL | pub fn rust_task_is_unwinding(rt: *const rust_task) -> bool;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration
|
|
|
|
|
|
2022-09-18 15:55:36 +00:00
|
|
|
= note: expected `unsafe extern "C" fn(*const usize) -> bool`
|
|
|
|
found `unsafe extern "C" fn(*const bool) -> bool`
|
2020-04-06 10:00:42 +00:00
|
|
|
note: the lint level is defined here
|
|
|
|
--> $DIR/issue-1866.rs:4:9
|
|
|
|
|
|
2020-06-28 00:11:04 +00:00
|
|
|
LL | #![warn(clashing_extern_declarations)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2020-04-06 10:00:42 +00:00
|
|
|
|
|
|
|
warning: 1 warning emitted
|
|
|
|
|