mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-26 13:01:27 +03:00
Rollup merge of #155754 - folkertdev:hide-core-ffi-va-list, r=tgross35
make the `core::ffi::va_list` module private tracking issue: https://github.com/rust-lang/rust/issues/44930 the types are exported from `core::ffi` itself. T-libs-api decided that we should only export the types from `core::ffi`, and should not make `core::ffi::va_list` public, see https://github.com/rust-lang/rust/issues/44930#issuecomment-4289951633. r? tgross35
This commit is contained in:
@@ -23,6 +23,7 @@
|
|||||||
#[stable(feature = "c_str_module", since = "1.88.0")]
|
#[stable(feature = "c_str_module", since = "1.88.0")]
|
||||||
pub mod c_str;
|
pub mod c_str;
|
||||||
|
|
||||||
|
mod va_list;
|
||||||
#[unstable(
|
#[unstable(
|
||||||
feature = "c_variadic",
|
feature = "c_variadic",
|
||||||
issue = "44930",
|
issue = "44930",
|
||||||
@@ -30,13 +31,6 @@
|
|||||||
)]
|
)]
|
||||||
pub use self::va_list::{VaArgSafe, VaList};
|
pub use self::va_list::{VaArgSafe, VaList};
|
||||||
|
|
||||||
#[unstable(
|
|
||||||
feature = "c_variadic",
|
|
||||||
issue = "44930",
|
|
||||||
reason = "the `c_variadic` feature has not been properly tested on all supported platforms"
|
|
||||||
)]
|
|
||||||
pub mod va_list;
|
|
||||||
|
|
||||||
mod primitives;
|
mod primitives;
|
||||||
#[stable(feature = "core_ffi_c", since = "1.64.0")]
|
#[stable(feature = "core_ffi_c", since = "1.64.0")]
|
||||||
pub use self::primitives::{
|
pub use self::primitives::{
|
||||||
|
|||||||
@@ -2,6 +2,12 @@
|
|||||||
//!
|
//!
|
||||||
//! Better known as "varargs".
|
//! Better known as "varargs".
|
||||||
|
|
||||||
|
#![unstable(
|
||||||
|
feature = "c_variadic",
|
||||||
|
issue = "44930",
|
||||||
|
reason = "the `c_variadic` feature has not been properly tested on all supported platforms"
|
||||||
|
)]
|
||||||
|
|
||||||
#[cfg(not(target_arch = "xtensa"))]
|
#[cfg(not(target_arch = "xtensa"))]
|
||||||
use crate::ffi::c_void;
|
use crate::ffi::c_void;
|
||||||
use crate::fmt;
|
use crate::fmt;
|
||||||
|
|||||||
@@ -53,7 +53,7 @@
|
|||||||
issue = "none"
|
issue = "none"
|
||||||
)]
|
)]
|
||||||
|
|
||||||
use crate::ffi::va_list::{VaArgSafe, VaList};
|
use crate::ffi::{VaArgSafe, VaList};
|
||||||
use crate::marker::{ConstParamTy, DiscriminantKind, PointeeSized, Tuple};
|
use crate::marker::{ConstParamTy, DiscriminantKind, PointeeSized, Tuple};
|
||||||
use crate::{mem, ptr};
|
use crate::{mem, ptr};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user