mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 10:18:25 +00:00

Revert <https://github.com/rust-lang/rust/pull/131669> due to ICE reports: - <https://github.com/rust-lang/rust/issues/134059> (real-world) - <https://github.com/rust-lang/rust/issues/134060> (fuzzing) The changes can be re-landed with those cases addressed. This reverts commit 703bb982303ecab02fec593899639b4c3faecddd, reversing changes made to f415c07494b98e4559e4b13a9c5f867b0e6b2444.
17 lines
507 B
Plaintext
17 lines
507 B
Plaintext
error: `extern` fn uses type `[u8]`, which is not FFI-safe
|
|
--> $DIR/extern-C-fnptr-lints-slices.rs:5:14
|
|
|
|
|
LL | pub type F = extern "C" fn(&[u8]);
|
|
| ^^^^^^^^^^^^^^^^^^^^ not FFI-safe
|
|
|
|
|
= help: consider using a raw pointer instead
|
|
= note: slices have no C equivalent
|
|
note: the lint level is defined here
|
|
--> $DIR/extern-C-fnptr-lints-slices.rs:1:8
|
|
|
|
|
LL | #[deny(improper_ctypes_definitions)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 1 previous error
|
|
|