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