@@ -12,8 +12,8 @@ note: the lint level is defined here
1212 |
1313LL | #![warn(clashing_extern_decl)]
1414 | ^^^^^^^^^^^^^^^^^^^^
15- = note: expected `unsafe extern "C" fn(u8)`
16- found `unsafe extern "C" fn(u64)`
15+ = note: expected `unsafe extern "C" fn(u8)`
16+ found `unsafe extern "C" fn(u64)`
1717
1818warning: `extern_fn` redeclared with a different signature
1919 --> $DIR/clashing-extern-fn.rs:39:9
@@ -24,8 +24,8 @@ LL | fn extern_fn(x: u64);
2424LL | fn extern_fn(x: u32);
2525 | ^^^^^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration
2626 |
27- = note: expected `unsafe extern "C" fn(u64)`
28- found `unsafe extern "C" fn(u32)`
27+ = note: expected `unsafe extern "C" fn(u64)`
28+ found `unsafe extern "C" fn(u32)`
2929
3030warning: `extern_link_name` redeclared with a different signature
3131 --> $DIR/clashing-extern-fn.rs:64:9
@@ -37,8 +37,8 @@ LL | | fn some_new_name(x: i16);
3737LL | fn extern_link_name(x: u32);
3838 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration
3939 |
40- = note: expected `unsafe extern "C" fn(i16)`
41- found `unsafe extern "C" fn(u32)`
40+ = note: expected `unsafe extern "C" fn(i16)`
41+ found `unsafe extern "C" fn(u32)`
4242
4343warning: `some_other_extern_link_name` redeclares `some_other_new_name` with a different signature
4444 --> $DIR/clashing-extern-fn.rs:67:9
5151LL | | fn some_other_extern_link_name(x: u32);
5252 | |_______________________________________________^ this signature doesn't match the previous declaration
5353 |
54- = note: expected `unsafe extern "C" fn(i16)`
55- found `unsafe extern "C" fn(u32)`
54+ = note: expected `unsafe extern "C" fn(i16)`
55+ found `unsafe extern "C" fn(u32)`
5656
5757warning: `other_both_names_different` redeclares `link_name_same` with a different signature
5858 --> $DIR/clashing-extern-fn.rs:71:9
6666LL | | fn other_both_names_different(x: u32);
6767 | |______________________________________________^ this signature doesn't match the previous declaration
6868 |
69- = note: expected `unsafe extern "C" fn(i16)`
70- found `unsafe extern "C" fn(u32)`
69+ = note: expected `unsafe extern "C" fn(i16)`
70+ found `unsafe extern "C" fn(u32)`
7171
7272warning: `different_mod` redeclared with a different signature
7373 --> $DIR/clashing-extern-fn.rs:84:9
@@ -78,8 +78,8 @@ LL | fn different_mod(x: u8);
7878LL | fn different_mod(x: u64);
7979 | ^^^^^^^^^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration
8080 |
81- = note: expected `unsafe extern "C" fn(u8)`
82- found `unsafe extern "C" fn(u64)`
81+ = note: expected `unsafe extern "C" fn(u8)`
82+ found `unsafe extern "C" fn(u64)`
8383
8484warning: `variadic_decl` redeclared with a different signature
8585 --> $DIR/clashing-extern-fn.rs:94:9
@@ -90,8 +90,8 @@ LL | fn variadic_decl(x: u8, ...);
9090LL | fn variadic_decl(x: u8);
9191 | ^^^^^^^^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration
9292 |
93- = note: expected `unsafe extern "C" fn(u8, ...)`
94- found `unsafe extern "C" fn(u8)`
93+ = note: expected `unsafe extern "C" fn(u8, ...)`
94+ found `unsafe extern "C" fn(u8)`
9595
9696warning: `weigh_banana` redeclared with a different signature
9797 --> $DIR/clashing-extern-fn.rs:137:22
@@ -102,8 +102,8 @@ LL | extern "C" { fn weigh_banana(count: *const Banana) -> u64; }
102102LL | extern "C" { fn weigh_banana(count: *const Banana) -> u64; }
103103 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration
104104 |
105- = note: expected `unsafe extern "C" fn(*const banana::one::Banana) -> u64`
106- found `unsafe extern "C" fn(*const banana::three::Banana) -> u64`
105+ = note: expected `unsafe extern "C" fn(*const banana::one::Banana) -> u64`
106+ found `unsafe extern "C" fn(*const banana::three::Banana) -> u64`
107107
108108warning: `draw_point` redeclared with a different signature
109109 --> $DIR/clashing-extern-fn.rs:157:22
@@ -114,8 +114,8 @@ LL | extern "C" { fn draw_point(p: Point); }
114114LL | extern "C" { fn draw_point(p: Point); }
115115 | ^^^^^^^^^^^^^^^^^^^^^^^^ this signature doesn't match the previous declaration
116116 |
117- = note: expected `unsafe extern "C" fn(sameish_members::a::Point)`
118- found `unsafe extern "C" fn(sameish_members::b::Point)`
117+ = note: expected `unsafe extern "C" fn(sameish_members::a::Point)`
118+ found `unsafe extern "C" fn(sameish_members::b::Point)`
119119
120120warning: 9 warnings emitted
121121
0 commit comments