@@ -106,19 +106,19 @@ LL | fn draw_point(p: Point);
106
106
found `unsafe extern "C" fn(sameish_members::b::Point)`
107
107
108
108
warning: `origin` redeclared with a different signature
109
- --> $DIR/clashing-extern-fn.rs:194:22
109
+ --> $DIR/clashing-extern-fn.rs:197:13
110
110
|
111
- LL | extern "C" { fn origin() -> Point3; }
112
- | ---------------------- `origin` previously declared here
111
+ LL | fn origin() -> Point3;
112
+ | ---------------------- `origin` previously declared here
113
113
...
114
- LL | extern "C" { fn origin() -> Point3; }
115
- | ^^^^^^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration
114
+ LL | fn origin() -> Point3;
115
+ | ^^^^^^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration
116
116
|
117
117
= note: expected `unsafe extern "C" fn() -> same_sized_members_clash::a::Point3`
118
118
found `unsafe extern "C" fn() -> same_sized_members_clash::b::Point3`
119
119
120
120
warning: `transparent_incorrect` redeclared with a different signature
121
- --> $DIR/clashing-extern-fn.rs:217 :13
121
+ --> $DIR/clashing-extern-fn.rs:220 :13
122
122
|
123
123
LL | fn transparent_incorrect() -> T;
124
124
| -------------------------------- `transparent_incorrect` previously declared here
@@ -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:235 :13
133
+ --> $DIR/clashing-extern-fn.rs:238 :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:253 :13
145
+ --> $DIR/clashing-extern-fn.rs:256 :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:255 :13
157
+ --> $DIR/clashing-extern-fn.rs:258 :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:337 :13
169
+ --> $DIR/clashing-extern-fn.rs:356 :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:339 :13
181
+ --> $DIR/clashing-extern-fn.rs:358 :13
182
182
|
183
183
LL | fn option_non_null_ptr_incorrect() -> *const usize;
184
184
| --------------------------------------------------- `option_non_null_ptr_incorrect` previously declared here
0 commit comments