@@ -12,8 +12,8 @@ note: the lint level is defined here
12
12
|
13
13
LL | #![warn(clashing_extern_decl)]
14
14
| ^^^^^^^^^^^^^^^^^^^^
15
- = note: expected `unsafe extern "C" fn(u8)`
16
- found `unsafe extern "C" fn(u64)`
15
+ = note: expected `unsafe extern "C" fn(u8)`
16
+ found `unsafe extern "C" fn(u64)`
17
17
18
18
warning: `extern_fn` redeclared with a different signature
19
19
--> $DIR/clashing-extern-fn.rs:39:9
@@ -24,8 +24,8 @@ LL | fn extern_fn(x: u64);
24
24
LL | fn extern_fn(x: u32);
25
25
| ^^^^^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration
26
26
|
27
- = note: expected `unsafe extern "C" fn(u64)`
28
- found `unsafe extern "C" fn(u32)`
27
+ = note: expected `unsafe extern "C" fn(u64)`
28
+ found `unsafe extern "C" fn(u32)`
29
29
30
30
warning: `extern_link_name` redeclared with a different signature
31
31
--> $DIR/clashing-extern-fn.rs:64:9
@@ -37,8 +37,8 @@ LL | | fn some_new_name(x: i16);
37
37
LL | fn extern_link_name(x: u32);
38
38
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration
39
39
|
40
- = note: expected `unsafe extern "C" fn(i16)`
41
- found `unsafe extern "C" fn(u32)`
40
+ = note: expected `unsafe extern "C" fn(i16)`
41
+ found `unsafe extern "C" fn(u32)`
42
42
43
43
warning: `some_other_extern_link_name` redeclares `some_other_new_name` with a different signature
44
44
--> $DIR/clashing-extern-fn.rs:67:9
51
51
LL | | fn some_other_extern_link_name(x: u32);
52
52
| |_______________________________________________^ this signature doesn't match the previous declaration
53
53
|
54
- = note: expected `unsafe extern "C" fn(i16)`
55
- found `unsafe extern "C" fn(u32)`
54
+ = note: expected `unsafe extern "C" fn(i16)`
55
+ found `unsafe extern "C" fn(u32)`
56
56
57
57
warning: `other_both_names_different` redeclares `link_name_same` with a different signature
58
58
--> $DIR/clashing-extern-fn.rs:71:9
66
66
LL | | fn other_both_names_different(x: u32);
67
67
| |______________________________________________^ this signature doesn't match the previous declaration
68
68
|
69
- = note: expected `unsafe extern "C" fn(i16)`
70
- found `unsafe extern "C" fn(u32)`
69
+ = note: expected `unsafe extern "C" fn(i16)`
70
+ found `unsafe extern "C" fn(u32)`
71
71
72
72
warning: `different_mod` redeclared with a different signature
73
73
--> $DIR/clashing-extern-fn.rs:84:9
@@ -78,8 +78,8 @@ LL | fn different_mod(x: u8);
78
78
LL | fn different_mod(x: u64);
79
79
| ^^^^^^^^^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration
80
80
|
81
- = note: expected `unsafe extern "C" fn(u8)`
82
- found `unsafe extern "C" fn(u64)`
81
+ = note: expected `unsafe extern "C" fn(u8)`
82
+ found `unsafe extern "C" fn(u64)`
83
83
84
84
warning: `variadic_decl` redeclared with a different signature
85
85
--> $DIR/clashing-extern-fn.rs:94:9
@@ -90,8 +90,8 @@ LL | fn variadic_decl(x: u8, ...);
90
90
LL | fn variadic_decl(x: u8);
91
91
| ^^^^^^^^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration
92
92
|
93
- = note: expected `unsafe extern "C" fn(u8, ...)`
94
- found `unsafe extern "C" fn(u8)`
93
+ = note: expected `unsafe extern "C" fn(u8, ...)`
94
+ found `unsafe extern "C" fn(u8)`
95
95
96
96
warning: `weigh_banana` redeclared with a different signature
97
97
--> $DIR/clashing-extern-fn.rs:137:22
@@ -102,8 +102,8 @@ LL | extern "C" { fn weigh_banana(count: *const Banana) -> u64; }
102
102
LL | extern "C" { fn weigh_banana(count: *const Banana) -> u64; }
103
103
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration
104
104
|
105
- = note: expected `unsafe extern "C" fn(*const banana::one::Banana) -> u64`
106
- found `unsafe extern "C" fn(*const banana::three::Banana) -> u64`
105
+ = note: expected `unsafe extern "C" fn(*const banana::one::Banana) -> u64`
106
+ found `unsafe extern "C" fn(*const banana::three::Banana) -> u64`
107
107
108
108
warning: `draw_point` redeclared with a different signature
109
109
--> $DIR/clashing-extern-fn.rs:157:22
@@ -114,8 +114,8 @@ LL | extern "C" { fn draw_point(p: Point); }
114
114
LL | extern "C" { fn draw_point(p: Point); }
115
115
| ^^^^^^^^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration
116
116
|
117
- = note: expected `unsafe extern "C" fn(sameish_members::a::Point)`
118
- found `unsafe extern "C" fn(sameish_members::b::Point)`
117
+ = note: expected `unsafe extern "C" fn(sameish_members::a::Point)`
118
+ found `unsafe extern "C" fn(sameish_members::b::Point)`
119
119
120
120
warning: 9 warnings emitted
121
121
0 commit comments