about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/attributes.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-03-02 04:30:12 +0100
committerGitHub <noreply@github.com>2022-03-02 04:30:12 +0100
commit3ea9eebb73d07d81e7bd92ba6ec4a6da37c18ae9 (patch)
tree9d25d306754e0262bf37f18e5f054ac733e9842a /compiler/rustc_codegen_llvm/src/attributes.rs
parent1ff654af3922096737fa8642c238338305585639 (diff)
parent75c3e9c23f07b275548998555883e34e39896587 (diff)
downloadrust-3ea9eebb73d07d81e7bd92ba6ec4a6da37c18ae9.tar.gz
rust-3ea9eebb73d07d81e7bd92ba6ec4a6da37c18ae9.zip
Rollup merge of #94503 - joshtriplett:core-ffi-c, r=Amanieu
Provide C FFI types via core::ffi, not just in std

Tracking issue: https://github.com/rust-lang/rust/issues/94501

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.

Historically, we didn't do this because these types are target-dependent.
However, `core` itself is also target-dependent. `core` should not call
any OS services, but it knows the target and the target's ABI.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/attributes.rs')
0 files changed, 0 insertions, 0 deletions