fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
2.2 KiB87 linesraw
1error: `extern` block uses type `A`, which is not FFI-safe
2  --> $DIR/issue-14309.rs:30:15
3   |
4LL |     fn foo(x: A);
5   |               ^ not FFI-safe
6   |
7note: lint level defined here
8  --> $DIR/issue-14309.rs:1:9
9   |
10LL | #![deny(improper_ctypes)]
11   |         ^^^^^^^^^^^^^^^
12   = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct
13   = note: this struct has unspecified layout
14note: type defined here
15  --> $DIR/issue-14309.rs:4:1
16   |
17LL | / struct A {
18LL | |     x: i32
19LL | | }
20   | |_^
21
22error: `extern` block uses type `A`, which is not FFI-safe
23  --> $DIR/issue-14309.rs:31:15
24   |
25LL |     fn bar(x: B);
26   |               ^ not FFI-safe
27   |
28   = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct
29   = note: this struct has unspecified layout
30note: type defined here
31  --> $DIR/issue-14309.rs:4:1
32   |
33LL | / struct A {
34LL | |     x: i32
35LL | | }
36   | |_^
37
38error: `extern` block uses type `A`, which is not FFI-safe
39  --> $DIR/issue-14309.rs:33:15
40   |
41LL |     fn qux(x: A2);
42   |               ^^ not FFI-safe
43   |
44   = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct
45   = note: this struct has unspecified layout
46note: type defined here
47  --> $DIR/issue-14309.rs:4:1
48   |
49LL | / struct A {
50LL | |     x: i32
51LL | | }
52   | |_^
53
54error: `extern` block uses type `A`, which is not FFI-safe
55  --> $DIR/issue-14309.rs:34:16
56   |
57LL |     fn quux(x: B2);
58   |                ^^ not FFI-safe
59   |
60   = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct
61   = note: this struct has unspecified layout
62note: type defined here
63  --> $DIR/issue-14309.rs:4:1
64   |
65LL | / struct A {
66LL | |     x: i32
67LL | | }
68   | |_^
69
70error: `extern` block uses type `A`, which is not FFI-safe
71  --> $DIR/issue-14309.rs:36:16
72   |
73LL |     fn fred(x: D);
74   |                ^ not FFI-safe
75   |
76   = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct
77   = note: this struct has unspecified layout
78note: type defined here
79  --> $DIR/issue-14309.rs:4:1
80   |
81LL | / struct A {
82LL | |     x: i32
83LL | | }
84   | |_^
85
86error: aborting due to 5 previous errors
87