Skip to content

Commit d5ae8b5

Browse files
Dylan-DPCehuss
authored andcommitted
Rollup merge of #96492 - joshtriplett:revert-std-ffi-re-export, r=yaahc
Revert "Re-export core::ffi types from std::ffi" This reverts commit 9aed829. Fixes #96435 , a regression in crates doing `use std::ffi::*;` and `use std::os::raw::*;`. We can re-add this re-export once the `core::ffi` types are stable, and thus the `std::os::raw` types can become re-exports as well, which will avoid the conflict. (Type aliases to the same type still conflict, but re-exports of the same type don't.)
1 parent be781f2 commit d5ae8b5

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

library/std/src/ffi/mod.rs

-9
Original file line numberDiff line numberDiff line change
@@ -159,15 +159,6 @@ pub use self::os_str::{OsStr, OsString};
159159
#[stable(feature = "core_c_void", since = "1.30.0")]
160160
pub use core::ffi::c_void;
161161

162-
#[unstable(feature = "core_ffi_c", issue = "94501")]
163-
pub use core::ffi::{
164-
c_char, c_double, c_float, c_int, c_long, c_longlong, c_schar, c_short, c_uchar, c_uint,
165-
c_ulong, c_ulonglong, c_ushort,
166-
};
167-
168-
#[unstable(feature = "c_size_t", issue = "88345")]
169-
pub use core::ffi::{c_ptrdiff_t, c_size_t, c_ssize_t};
170-
171162
#[unstable(
172163
feature = "c_variadic",
173164
reason = "the `c_variadic` feature has not been properly tested on \

library/std/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,6 @@
303303
// Only for re-exporting:
304304
#![feature(assert_matches)]
305305
#![feature(async_iterator)]
306-
#![feature(c_size_t)]
307306
#![feature(c_variadic)]
308307
#![feature(cfg_accessible)]
309308
#![feature(cfg_eval)]

0 commit comments

Comments
 (0)