rust/tests/ui/lint/issue-14309.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

78 lines
2.1 KiB
Plaintext
Raw Normal View History

2019-09-10 22:29:31 +01:00
error: `extern` block uses type `A`, which is not FFI-safe
2018-12-25 08:56:47 -07:00
--> $DIR/issue-14309.rs:30:15
2018-07-15 14:11:54 -07:00
|
2019-03-09 15:03:44 +03:00
LL | fn foo(x: A);
2019-09-10 22:29:31 +01:00
| ^ not FFI-safe
2018-07-15 14:11:54 -07:00
|
= help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct
2019-09-10 22:29:31 +01:00
= note: this struct has unspecified layout
2020-01-22 23:57:38 +00:00
note: the type is defined here
2018-12-25 08:56:47 -07:00
--> $DIR/issue-14309.rs:4:1
2018-07-15 14:11:54 -07:00
|
2022-02-13 16:27:59 +01:00
LL | struct A {
| ^^^^^^^^
2022-09-18 19:55:36 +04:00
note: the lint level is defined here
--> $DIR/issue-14309.rs:1:9
|
LL | #![deny(improper_ctypes)]
| ^^^^^^^^^^^^^^^
2018-07-15 14:11:54 -07:00
2019-09-10 22:29:31 +01:00
error: `extern` block uses type `A`, which is not FFI-safe
2018-12-25 08:56:47 -07:00
--> $DIR/issue-14309.rs:31:15
2018-07-15 14:11:54 -07:00
|
2019-03-09 15:03:44 +03:00
LL | fn bar(x: B);
2019-09-10 22:29:31 +01:00
| ^ not FFI-safe
2018-07-15 14:11:54 -07:00
|
= help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct
2019-09-10 22:29:31 +01:00
= note: this struct has unspecified layout
2020-01-22 23:57:38 +00:00
note: the type is defined here
2018-12-25 08:56:47 -07:00
--> $DIR/issue-14309.rs:4:1
2018-07-15 14:11:54 -07:00
|
2022-02-13 16:27:59 +01:00
LL | struct A {
| ^^^^^^^^
2018-07-15 14:11:54 -07:00
2019-09-10 22:29:31 +01:00
error: `extern` block uses type `A`, which is not FFI-safe
2018-12-25 08:56:47 -07:00
--> $DIR/issue-14309.rs:33:15
2018-07-15 14:11:54 -07:00
|
2019-03-09 15:03:44 +03:00
LL | fn qux(x: A2);
2019-09-10 22:29:31 +01:00
| ^^ not FFI-safe
2018-07-15 14:11:54 -07:00
|
= help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct
2019-09-10 22:29:31 +01:00
= note: this struct has unspecified layout
2020-01-22 23:57:38 +00:00
note: the type is defined here
2018-12-25 08:56:47 -07:00
--> $DIR/issue-14309.rs:4:1
2018-07-15 14:11:54 -07:00
|
2022-02-13 16:27:59 +01:00
LL | struct A {
| ^^^^^^^^
2018-07-15 14:11:54 -07:00
2019-09-10 22:29:31 +01:00
error: `extern` block uses type `A`, which is not FFI-safe
2018-12-25 08:56:47 -07:00
--> $DIR/issue-14309.rs:34:16
2018-07-15 14:11:54 -07:00
|
2019-03-09 15:03:44 +03:00
LL | fn quux(x: B2);
2019-09-10 22:29:31 +01:00
| ^^ not FFI-safe
2018-07-15 14:11:54 -07:00
|
= help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct
2019-09-10 22:29:31 +01:00
= note: this struct has unspecified layout
2020-01-22 23:57:38 +00:00
note: the type is defined here
2018-12-25 08:56:47 -07:00
--> $DIR/issue-14309.rs:4:1
2018-07-15 14:11:54 -07:00
|
2022-02-13 16:27:59 +01:00
LL | struct A {
| ^^^^^^^^
2018-07-15 14:11:54 -07:00
2019-09-10 22:29:31 +01:00
error: `extern` block uses type `A`, which is not FFI-safe
2018-12-25 08:56:47 -07:00
--> $DIR/issue-14309.rs:36:16
2018-07-15 14:11:54 -07:00
|
2019-03-09 15:03:44 +03:00
LL | fn fred(x: D);
2019-09-10 22:29:31 +01:00
| ^ not FFI-safe
2018-07-15 14:11:54 -07:00
|
= help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct
2019-09-10 22:29:31 +01:00
= note: this struct has unspecified layout
2020-01-22 23:57:38 +00:00
note: the type is defined here
2018-12-25 08:56:47 -07:00
--> $DIR/issue-14309.rs:4:1
2018-07-15 14:11:54 -07:00
|
2022-02-13 16:27:59 +01:00
LL | struct A {
| ^^^^^^^^
2018-07-15 14:11:54 -07:00
error: aborting due to 5 previous errors