]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: ffi-polonius: Remove usage of extern types.
authorArthur Cohen <arthur.cohen@embecosm.com>
Fri, 26 Jul 2024 09:04:46 +0000 (11:04 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Wed, 19 Mar 2025 14:32:01 +0000 (15:32 +0100)
commitc53ff58924fa162cef5a444dcc35db7da8037249
treed44a6b728380bf822394bb1998fcf494f677dd01
parent4d6b34b669c4d274ce80baeedc7b29b4e719efdc
gccrs: ffi-polonius: Remove usage of extern types.

This will allow us to revert our dependency on extern types, which would
help our godbolt build as well as our various builders.

gcc/rust/ChangeLog:

* checks/errors/borrowck/ffi-polonius/src/gccrs_ffi.rs: Remove extern
type feature.
* checks/errors/borrowck/ffi-polonius/src/lib.rs: Define FFIVector
per the nomicon's recommendation
https://doc.rust-lang.org/nomicon/ffi.html#representing-opaque-structs
gcc/rust/checks/errors/borrowck/ffi-polonius/src/gccrs_ffi.rs
gcc/rust/checks/errors/borrowck/ffi-polonius/src/lib.rs