1
1
warning: `clash` redeclared with a different signature
2
- --> $DIR/clashing-extern-fn.rs:15:9
2
+ --> $DIR/clashing-extern-fn.rs:14:13
3
3
|
4
- LL | fn clash(x: u8);
5
- | ---------------- `clash` previously declared here
4
+ LL | fn clash(x: u8);
5
+ | ---------------- `clash` previously declared here
6
6
...
7
- LL | fn clash(x: u64);
8
- | ^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration
7
+ LL | fn clash(x: u64);
8
+ | ^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration
9
9
|
10
10
note: the lint level is defined here
11
11
--> $DIR/clashing-extern-fn.rs:4:9
@@ -15,20 +15,8 @@ LL | #![warn(clashing_extern_declarations)]
15
15
= note: expected `unsafe extern "C" fn(u8)`
16
16
found `unsafe extern "C" fn(u64)`
17
17
18
- warning: `extern_fn` redeclared with a different signature
19
- --> $DIR/clashing-extern-fn.rs:39:9
20
- |
21
- LL | fn extern_fn(x: u64);
22
- | --------------------- `extern_fn` previously declared here
23
- ...
24
- LL | fn extern_fn(x: u32);
25
- | ^^^^^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration
26
- |
27
- = note: expected `unsafe extern "C" fn(u64)`
28
- found `unsafe extern "C" fn(u32)`
29
-
30
18
warning: `extern_link_name` redeclared with a different signature
31
- --> $DIR/clashing-extern-fn.rs:64 :9
19
+ --> $DIR/clashing-extern-fn.rs:52 :9
32
20
|
33
21
LL | / #[link_name = "extern_link_name"]
34
22
LL | | fn some_new_name(x: i16);
@@ -41,7 +29,7 @@ LL | fn extern_link_name(x: u32);
41
29
found `unsafe extern "C" fn(u32)`
42
30
43
31
warning: `some_other_extern_link_name` redeclares `some_other_new_name` with a different signature
44
- --> $DIR/clashing-extern-fn.rs:67 :9
32
+ --> $DIR/clashing-extern-fn.rs:55 :9
45
33
|
46
34
LL | fn some_other_new_name(x: i16);
47
35
| ------------------------------- `some_other_new_name` previously declared here
@@ -55,7 +43,7 @@ LL | | fn some_other_extern_link_name(x: u32);
55
43
found `unsafe extern "C" fn(u32)`
56
44
57
45
warning: `other_both_names_different` redeclares `link_name_same` with a different signature
58
- --> $DIR/clashing-extern-fn.rs:71 :9
46
+ --> $DIR/clashing-extern-fn.rs:59 :9
59
47
|
60
48
LL | / #[link_name = "link_name_same"]
61
49
LL | | fn both_names_different(x: i16);
@@ -70,7 +58,7 @@ LL | | fn other_both_names_different(x: u32);
70
58
found `unsafe extern "C" fn(u32)`
71
59
72
60
warning: `different_mod` redeclared with a different signature
73
- --> $DIR/clashing-extern-fn.rs:84 :9
61
+ --> $DIR/clashing-extern-fn.rs:72 :9
74
62
|
75
63
LL | fn different_mod(x: u8);
76
64
| ------------------------ `different_mod` previously declared here
@@ -82,7 +70,7 @@ LL | fn different_mod(x: u64);
82
70
found `unsafe extern "C" fn(u64)`
83
71
84
72
warning: `variadic_decl` redeclared with a different signature
85
- --> $DIR/clashing-extern-fn.rs:94 :9
73
+ --> $DIR/clashing-extern-fn.rs:82 :9
86
74
|
87
75
LL | fn variadic_decl(x: u8, ...);
88
76
| ----------------------------- `variadic_decl` previously declared here
@@ -94,7 +82,7 @@ LL | fn variadic_decl(x: u8);
94
82
found `unsafe extern "C" fn(u8)`
95
83
96
84
warning: `weigh_banana` redeclared with a different signature
97
- --> $DIR/clashing-extern-fn.rs:154 :13
85
+ --> $DIR/clashing-extern-fn.rs:142 :13
98
86
|
99
87
LL | fn weigh_banana(count: *const Banana) -> u64;
100
88
| --------------------------------------------- `weigh_banana` previously declared here
@@ -106,7 +94,7 @@ LL | fn weigh_banana(count: *const Banana) -> u64;
106
94
found `unsafe extern "C" fn(*const banana::three::Banana) -> u64`
107
95
108
96
warning: `draw_point` redeclared with a different signature
109
- --> $DIR/clashing-extern-fn.rs:183 :13
97
+ --> $DIR/clashing-extern-fn.rs:171 :13
110
98
|
111
99
LL | fn draw_point(p: Point);
112
100
| ------------------------ `draw_point` previously declared here
@@ -117,5 +105,5 @@ LL | fn draw_point(p: Point);
117
105
= note: expected `unsafe extern "C" fn(sameish_members::a::Point)`
118
106
found `unsafe extern "C" fn(sameish_members::b::Point)`
119
107
120
- warning: 9 warnings emitted
108
+ warning: 8 warnings emitted
121
109
0 commit comments