diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-06-06 23:53:15 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-06 23:53:15 +0200 |
| commit | 3fee6cccde6d1a0f8cabbc40c031ed139df4a888 (patch) | |
| tree | 3c00cc42ec0e10fe09478ff0500b0be87b8ef909 /library/std/src | |
| parent | 44f415c1d617ebc7b931a243b7b321ef8a6ca47c (diff) | |
| parent | 8db68dafc70cb51ddc6eabb6a6db754b95aa296c (diff) | |
| download | rust-3fee6cccde6d1a0f8cabbc40c031ed139df4a888.tar.gz rust-3fee6cccde6d1a0f8cabbc40c031ed139df4a888.zip | |
Rollup merge of #140418 - tgross35:std-c-size_t, r=workingjubilee
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. Tracking issue: https://github.com/rust-lang/rust/issues/88345
Diffstat (limited to 'library/std/src')
| -rw-r--r-- | library/std/src/ffi/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/library/std/src/ffi/mod.rs b/library/std/src/ffi/mod.rs index 024cb71b915..f44e12d48ad 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")] |
