about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTrevor Gross <tmgross@umich.edu>2025-04-28 19:57:44 -0400
committerTrevor Gross <tmgross@umich.edu>2025-04-28 19:57:44 -0400
commit8db68dafc70cb51ddc6eabb6a6db754b95aa296c (patch)
treeaca065c805609935be2cb2826e20f0ba9e5dbf07
parent25cdf1f67463c9365d8d83778c933ec7480e940b (diff)
downloadrust-8db68dafc70cb51ddc6eabb6a6db754b95aa296c.tar.gz
rust-8db68dafc70cb51ddc6eabb6a6db754b95aa296c.zip
Reexport types from `c_size_t` in `std`
These are unstably available in `core` and should be in `std` too, but
are not currently reexported. Resolve this here.
-rw-r--r--library/std/src/ffi/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/library/std/src/ffi/mod.rs b/library/std/src/ffi/mod.rs
index bd9446f5aba..f77bc1916e1 100644
--- a/library/std/src/ffi/mod.rs
+++ b/library/std/src/ffi/mod.rs
@@ -178,6 +178,8 @@ pub use core::ffi::{
     c_char, c_double, c_float, c_int, c_long, c_longlong, c_schar, c_short, c_uchar, c_uint,
     c_ulong, c_ulonglong, c_ushort,
 };
+#[unstable(feature = "c_size_t", issue = "88345")]
+pub use core::ffi::{c_ptrdiff_t, c_size_t, c_ssize_t};
 
 #[doc(inline)]
 #[stable(feature = "cstr_from_bytes_until_nul", since = "1.69.0")]