1
1
warning: `extern` block uses type `Option<TransparentNoNiche>`, which is not FFI-safe
2
- --> $DIR/clashing-extern-fn.rs:430 :55
2
+ --> $DIR/clashing-extern-fn.rs:429 :55
3
3
|
4
4
LL | fn hidden_niche_transparent_no_niche() -> Option<TransparentNoNiche>;
5
5
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -9,7 +9,7 @@ LL | fn hidden_niche_transparent_no_niche() -> Option<TransparentNoN
9
9
= note: `#[warn(improper_ctypes)]` on by default
10
10
11
11
warning: `extern` block uses type `Option<UnsafeCell<NonZero<usize>>>`, which is not FFI-safe
12
- --> $DIR/clashing-extern-fn.rs:434 :46
12
+ --> $DIR/clashing-extern-fn.rs:433 :46
13
13
|
14
14
LL | fn hidden_niche_unsafe_cell() -> Option<UnsafeCell<NonZero<usize>>>;
15
15
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -18,7 +18,7 @@ LL | fn hidden_niche_unsafe_cell() -> Option<UnsafeCell<NonZero<usiz
18
18
= note: enum has no representation hint
19
19
20
20
warning: `clash` redeclared with a different signature
21
- --> $DIR/clashing-extern-fn.rs:15 :13
21
+ --> $DIR/clashing-extern-fn.rs:14 :13
22
22
|
23
23
LL | fn clash(x: u8);
24
24
| --------------- `clash` previously declared here
@@ -35,7 +35,7 @@ LL | #![warn(clashing_extern_declarations)]
35
35
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
36
36
37
37
warning: `extern_link_name` redeclared with a different signature
38
- --> $DIR/clashing-extern-fn.rs:53 :9
38
+ --> $DIR/clashing-extern-fn.rs:52 :9
39
39
|
40
40
LL | #[link_name = "extern_link_name"]
41
41
| --------------------------------- `extern_link_name` previously declared here
@@ -47,7 +47,7 @@ LL | fn extern_link_name(x: u32);
47
47
found `unsafe extern "C" fn(u32)`
48
48
49
49
warning: `some_other_extern_link_name` redeclares `some_other_new_name` with a different signature
50
- --> $DIR/clashing-extern-fn.rs:56 :9
50
+ --> $DIR/clashing-extern-fn.rs:55 :9
51
51
|
52
52
LL | fn some_other_new_name(x: i16);
53
53
| ------------------------------ `some_other_new_name` previously declared here
@@ -59,7 +59,7 @@ LL | #[link_name = "some_other_new_name"]
59
59
found `unsafe extern "C" fn(u32)`
60
60
61
61
warning: `other_both_names_different` redeclares `link_name_same` with a different signature
62
- --> $DIR/clashing-extern-fn.rs:60 :9
62
+ --> $DIR/clashing-extern-fn.rs:59 :9
63
63
|
64
64
LL | #[link_name = "link_name_same"]
65
65
| ------------------------------- `link_name_same` previously declared here
@@ -71,7 +71,7 @@ LL | #[link_name = "link_name_same"]
71
71
found `unsafe extern "C" fn(u32)`
72
72
73
73
warning: `different_mod` redeclared with a different signature
74
- --> $DIR/clashing-extern-fn.rs:73 :9
74
+ --> $DIR/clashing-extern-fn.rs:72 :9
75
75
|
76
76
LL | fn different_mod(x: u8);
77
77
| ----------------------- `different_mod` previously declared here
@@ -83,7 +83,7 @@ LL | fn different_mod(x: u64);
83
83
found `unsafe extern "C" fn(u64)`
84
84
85
85
warning: `variadic_decl` redeclared with a different signature
86
- --> $DIR/clashing-extern-fn.rs:83 :9
86
+ --> $DIR/clashing-extern-fn.rs:82 :9
87
87
|
88
88
LL | fn variadic_decl(x: u8, ...);
89
89
| ---------------------------- `variadic_decl` previously declared here
@@ -95,7 +95,7 @@ LL | fn variadic_decl(x: u8);
95
95
found `unsafe extern "C" fn(u8)`
96
96
97
97
warning: `weigh_banana` redeclared with a different signature
98
- --> $DIR/clashing-extern-fn.rs:143 :13
98
+ --> $DIR/clashing-extern-fn.rs:142 :13
99
99
|
100
100
LL | fn weigh_banana(count: *const Banana) -> u64;
101
101
| -------------------------------------------- `weigh_banana` previously declared here
@@ -107,7 +107,7 @@ LL | fn weigh_banana(count: *const Banana) -> u64;
107
107
found `unsafe extern "C" fn(*const three::Banana) -> u64`
108
108
109
109
warning: `draw_point` redeclared with a different signature
110
- --> $DIR/clashing-extern-fn.rs:172 :13
110
+ --> $DIR/clashing-extern-fn.rs:171 :13
111
111
|
112
112
LL | fn draw_point(p: Point);
113
113
| ----------------------- `draw_point` previously declared here
@@ -119,7 +119,7 @@ LL | fn draw_point(p: Point);
119
119
found `unsafe extern "C" fn(sameish_members::b::Point)`
120
120
121
121
warning: `origin` redeclared with a different signature
122
- --> $DIR/clashing-extern-fn.rs:198 :13
122
+ --> $DIR/clashing-extern-fn.rs:197 :13
123
123
|
124
124
LL | fn origin() -> Point3;
125
125
| --------------------- `origin` previously declared here
@@ -131,7 +131,7 @@ LL | fn origin() -> Point3;
131
131
found `unsafe extern "C" fn() -> same_sized_members_clash::b::Point3`
132
132
133
133
warning: `transparent_incorrect` redeclared with a different signature
134
- --> $DIR/clashing-extern-fn.rs:221 :13
134
+ --> $DIR/clashing-extern-fn.rs:220 :13
135
135
|
136
136
LL | fn transparent_incorrect() -> T;
137
137
| ------------------------------- `transparent_incorrect` previously declared here
@@ -143,7 +143,7 @@ LL | fn transparent_incorrect() -> isize;
143
143
found `unsafe extern "C" fn() -> isize`
144
144
145
145
warning: `missing_return_type` redeclared with a different signature
146
- --> $DIR/clashing-extern-fn.rs:260 :13
146
+ --> $DIR/clashing-extern-fn.rs:259 :13
147
147
|
148
148
LL | fn missing_return_type() -> usize;
149
149
| --------------------------------- `missing_return_type` previously declared here
@@ -155,7 +155,7 @@ LL | fn missing_return_type();
155
155
found `unsafe extern "C" fn()`
156
156
157
157
warning: `non_zero_usize` redeclared with a different signature
158
- --> $DIR/clashing-extern-fn.rs:278 :13
158
+ --> $DIR/clashing-extern-fn.rs:277 :13
159
159
|
160
160
LL | fn non_zero_usize() -> core::num::NonZero<usize>;
161
161
| ------------------------------------------------ `non_zero_usize` previously declared here
@@ -167,7 +167,7 @@ LL | fn non_zero_usize() -> usize;
167
167
found `unsafe extern "C" fn() -> usize`
168
168
169
169
warning: `non_null_ptr` redeclared with a different signature
170
- --> $DIR/clashing-extern-fn.rs:280 :13
170
+ --> $DIR/clashing-extern-fn.rs:279 :13
171
171
|
172
172
LL | fn non_null_ptr() -> core::ptr::NonNull<usize>;
173
173
| ---------------------------------------------- `non_null_ptr` previously declared here
@@ -179,7 +179,7 @@ LL | fn non_null_ptr() -> *const usize;
179
179
found `unsafe extern "C" fn() -> *const usize`
180
180
181
181
warning: `option_non_zero_usize_incorrect` redeclared with a different signature
182
- --> $DIR/clashing-extern-fn.rs:374 :13
182
+ --> $DIR/clashing-extern-fn.rs:373 :13
183
183
|
184
184
LL | fn option_non_zero_usize_incorrect() -> usize;
185
185
| --------------------------------------------- `option_non_zero_usize_incorrect` previously declared here
@@ -191,7 +191,7 @@ LL | fn option_non_zero_usize_incorrect() -> isize;
191
191
found `unsafe extern "C" fn() -> isize`
192
192
193
193
warning: `option_non_null_ptr_incorrect` redeclared with a different signature
194
- --> $DIR/clashing-extern-fn.rs:376 :13
194
+ --> $DIR/clashing-extern-fn.rs:375 :13
195
195
|
196
196
LL | fn option_non_null_ptr_incorrect() -> *const usize;
197
197
| -------------------------------------------------- `option_non_null_ptr_incorrect` previously declared here
@@ -203,7 +203,7 @@ LL | fn option_non_null_ptr_incorrect() -> *const isize;
203
203
found `unsafe extern "C" fn() -> *const isize`
204
204
205
205
warning: `hidden_niche_transparent_no_niche` redeclared with a different signature
206
- --> $DIR/clashing-extern-fn.rs:430 :13
206
+ --> $DIR/clashing-extern-fn.rs:429 :13
207
207
|
208
208
LL | fn hidden_niche_transparent_no_niche() -> usize;
209
209
| ----------------------------------------------- `hidden_niche_transparent_no_niche` previously declared here
@@ -215,7 +215,7 @@ LL | fn hidden_niche_transparent_no_niche() -> Option<TransparentNoN
215
215
found `unsafe extern "C" fn() -> Option<TransparentNoNiche>`
216
216
217
217
warning: `hidden_niche_unsafe_cell` redeclared with a different signature
218
- --> $DIR/clashing-extern-fn.rs:434 :13
218
+ --> $DIR/clashing-extern-fn.rs:433 :13
219
219
|
220
220
LL | fn hidden_niche_unsafe_cell() -> usize;
221
221
| -------------------------------------- `hidden_niche_unsafe_cell` previously declared here
0 commit comments