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;
|
2023-07-15 10:41:33 +00:00
|
|
|
| ----------------------------------------------------------- `rust_task_is_unwinding` previously declared here
|
2020-04-06 10:00:42 +00:00
|
|
|
...
|
|
|
|
LL | pub fn rust_task_is_unwinding(rt: *const rust_task) -> bool;
|
2023-07-15 10:41:33 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration
|
2020-04-06 10:00:42 +00:00
|
|
|
|
|
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
|
|
|
|
|