@@ -106,19 +106,19 @@ LL | fn draw_point(p: Point);
106106 found `unsafe extern "C" fn(sameish_members::b::Point)`
107107
108108warning: `origin` redeclared with a different signature
109- --> $DIR/clashing-extern-fn.rs:194:22
109+ --> $DIR/clashing-extern-fn.rs:197:13
110110 |
111- LL | extern "C" { fn origin() -> Point3; }
112- | ---------------------- `origin` previously declared here
111+ LL | fn origin() -> Point3;
112+ | ---------------------- `origin` previously declared here
113113...
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
116116 |
117117 = note: expected `unsafe extern "C" fn() -> same_sized_members_clash::a::Point3`
118118 found `unsafe extern "C" fn() -> same_sized_members_clash::b::Point3`
119119
120120warning: `transparent_incorrect` redeclared with a different signature
121- --> $DIR/clashing-extern-fn.rs:217 :13
121+ --> $DIR/clashing-extern-fn.rs:220 :13
122122 |
123123LL | fn transparent_incorrect() -> T;
124124 | -------------------------------- `transparent_incorrect` previously declared here
@@ -130,7 +130,7 @@ LL | fn transparent_incorrect() -> isize;
130130 found `unsafe extern "C" fn() -> isize`
131131
132132warning: `missing_return_type` redeclared with a different signature
133- --> $DIR/clashing-extern-fn.rs:235 :13
133+ --> $DIR/clashing-extern-fn.rs:238 :13
134134 |
135135LL | fn missing_return_type() -> usize;
136136 | ---------------------------------- `missing_return_type` previously declared here
@@ -142,7 +142,7 @@ LL | fn missing_return_type();
142142 found `unsafe extern "C" fn()`
143143
144144warning: `non_zero_usize` redeclared with a different signature
145- --> $DIR/clashing-extern-fn.rs:253 :13
145+ --> $DIR/clashing-extern-fn.rs:256 :13
146146 |
147147LL | fn non_zero_usize() -> core::num::NonZeroUsize;
148148 | ----------------------------------------------- `non_zero_usize` previously declared here
@@ -154,7 +154,7 @@ LL | fn non_zero_usize() -> usize;
154154 found `unsafe extern "C" fn() -> usize`
155155
156156warning: `non_null_ptr` redeclared with a different signature
157- --> $DIR/clashing-extern-fn.rs:255 :13
157+ --> $DIR/clashing-extern-fn.rs:258 :13
158158 |
159159LL | fn non_null_ptr() -> core::ptr::NonNull<usize>;
160160 | ----------------------------------------------- `non_null_ptr` previously declared here
@@ -166,7 +166,7 @@ LL | fn non_null_ptr() -> *const usize;
166166 found `unsafe extern "C" fn() -> *const usize`
167167
168168warning: `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
170170 |
171171LL | fn option_non_zero_usize_incorrect() -> usize;
172172 | ---------------------------------------------- `option_non_zero_usize_incorrect` previously declared here
@@ -178,7 +178,7 @@ LL | fn option_non_zero_usize_incorrect() -> isize;
178178 found `unsafe extern "C" fn() -> isize`
179179
180180warning: `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
182182 |
183183LL | fn option_non_null_ptr_incorrect() -> *const usize;
184184 | --------------------------------------------------- `option_non_null_ptr_incorrect` previously declared here
0 commit comments