diff options
| author | Josh Triplett <josh@joshtriplett.org> | 2022-03-01 14:46:41 -0800 |
|---|---|---|
| committer | Josh Triplett <josh@joshtriplett.org> | 2022-03-01 17:16:05 -0800 |
| commit | 335c9609c6340a9933915e717ee7a722bd9f81bc (patch) | |
| tree | 678e22a6b80cfce6d4d056f5c4a49213c401dae2 /compiler/rustc_codegen_llvm/src/attributes.rs | |
| parent | 0f505c63775e9065e8174bb445f93da9f6c9870d (diff) | |
| download | rust-335c9609c6340a9933915e717ee7a722bd9f81bc.tar.gz rust-335c9609c6340a9933915e717ee7a722bd9f81bc.zip | |
Provide C FFI types via core::ffi, not just in std
The ability to interoperate with C code via FFI is not limited to crates using std; this allows using these types without std. The existing types in `std::os::raw` become type aliases for the ones in `core::ffi`. This uses type aliases rather than re-exports, to allow the std types to remain stable while the core types are unstable. This also moves the currently unstable `NonZero_` variants and `c_size_t`/`c_ssize_t`/`c_ptrdiff_t` types to `core::ffi`, while leaving them unstable.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/attributes.rs')
0 files changed, 0 insertions, 0 deletions
