@@ -130,7 +130,7 @@ LL | fn transparent_incorrect() -> isize;
130
130
found `unsafe extern "C" fn() -> isize`
131
131
132
132
warning: `missing_return_type` redeclared with a different signature
133
- --> $DIR/clashing-extern-fn.rs:238 :13
133
+ --> $DIR/clashing-extern-fn.rs:259 :13
134
134
|
135
135
LL | fn missing_return_type() -> usize;
136
136
| ---------------------------------- `missing_return_type` previously declared here
@@ -142,7 +142,7 @@ LL | fn missing_return_type();
142
142
found `unsafe extern "C" fn()`
143
143
144
144
warning: `non_zero_usize` redeclared with a different signature
145
- --> $DIR/clashing-extern-fn.rs:256 :13
145
+ --> $DIR/clashing-extern-fn.rs:277 :13
146
146
|
147
147
LL | fn non_zero_usize() -> core::num::NonZeroUsize;
148
148
| ----------------------------------------------- `non_zero_usize` previously declared here
@@ -154,7 +154,7 @@ LL | fn non_zero_usize() -> usize;
154
154
found `unsafe extern "C" fn() -> usize`
155
155
156
156
warning: `non_null_ptr` redeclared with a different signature
157
- --> $DIR/clashing-extern-fn.rs:258 :13
157
+ --> $DIR/clashing-extern-fn.rs:279 :13
158
158
|
159
159
LL | fn non_null_ptr() -> core::ptr::NonNull<usize>;
160
160
| ----------------------------------------------- `non_null_ptr` previously declared here
@@ -166,7 +166,7 @@ LL | fn non_null_ptr() -> *const usize;
166
166
found `unsafe extern "C" fn() -> *const usize`
167
167
168
168
warning: `option_non_zero_usize_incorrect` redeclared with a different signature
169
- --> $DIR/clashing-extern-fn.rs:356 :13
169
+ --> $DIR/clashing-extern-fn.rs:377 :13
170
170
|
171
171
LL | fn option_non_zero_usize_incorrect() -> usize;
172
172
| ---------------------------------------------- `option_non_zero_usize_incorrect` previously declared here
@@ -178,7 +178,7 @@ LL | fn option_non_zero_usize_incorrect() -> isize;
178
178
found `unsafe extern "C" fn() -> isize`
179
179
180
180
warning: `option_non_null_ptr_incorrect` redeclared with a different signature
181
- --> $DIR/clashing-extern-fn.rs:358 :13
181
+ --> $DIR/clashing-extern-fn.rs:379 :13
182
182
|
183
183
LL | fn option_non_null_ptr_incorrect() -> *const usize;
184
184
| --------------------------------------------------- `option_non_null_ptr_incorrect` previously declared here
@@ -190,7 +190,7 @@ LL | fn option_non_null_ptr_incorrect() -> *const isize;
190
190
found `unsafe extern "C" fn() -> *const isize`
191
191
192
192
warning: `hidden_niche_transparent_no_niche` redeclared with a different signature
193
- --> $DIR/clashing-extern-fn.rs:408 :13
193
+ --> $DIR/clashing-extern-fn.rs:433 :13
194
194
|
195
195
LL | fn hidden_niche_transparent_no_niche() -> usize;
196
196
| ------------------------------------------------ `hidden_niche_transparent_no_niche` previously declared here
@@ -202,7 +202,7 @@ LL | fn hidden_niche_transparent_no_niche() -> Option<TransparentNoN
202
202
found `unsafe extern "C" fn() -> Option<TransparentNoNiche>`
203
203
204
204
warning: `hidden_niche_unsafe_cell` redeclared with a different signature
205
- --> $DIR/clashing-extern-fn.rs:412 :13
205
+ --> $DIR/clashing-extern-fn.rs:437 :13
206
206
|
207
207
LL | fn hidden_niche_unsafe_cell() -> usize;
208
208
| --------------------------------------- `hidden_niche_unsafe_cell` previously declared here
@@ -214,7 +214,7 @@ LL | fn hidden_niche_unsafe_cell() -> Option<UnsafeCell<NonZeroUsize
214
214
found `unsafe extern "C" fn() -> Option<UnsafeCell<NonZeroUsize>>`
215
215
216
216
warning: `extern` block uses type `Option<TransparentNoNiche>`, which is not FFI-safe
217
- --> $DIR/clashing-extern-fn.rs:408 :55
217
+ --> $DIR/clashing-extern-fn.rs:433 :55
218
218
|
219
219
LL | fn hidden_niche_transparent_no_niche() -> Option<TransparentNoNiche>;
220
220
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
@@ -224,7 +224,7 @@ LL | fn hidden_niche_transparent_no_niche() -> Option<TransparentNoN
224
224
= note: `#[warn(improper_ctypes)]` on by default
225
225
226
226
warning: `extern` block uses type `Option<UnsafeCell<NonZeroUsize>>`, which is not FFI-safe
227
- --> $DIR/clashing-extern-fn.rs:412 :46
227
+ --> $DIR/clashing-extern-fn.rs:437 :46
228
228
|
229
229
LL | fn hidden_niche_unsafe_cell() -> Option<UnsafeCell<NonZeroUsize>>;
230
230
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not FFI-safe
0 commit comments