make the core::ffi::va_list module private

the types are exported from `core::ffi` itself
This commit is contained in:
Folkert de Vries
2026-04-24 22:18:22 +02:00
parent acb65f36a0
commit 3851c60cf8
3 changed files with 8 additions and 8 deletions
+1 -7
View File
@@ -23,6 +23,7 @@
#[stable(feature = "c_str_module", since = "1.88.0")]
pub mod c_str;
mod va_list;
#[unstable(
feature = "c_variadic",
issue = "44930",
@@ -30,13 +31,6 @@
)]
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;
#[stable(feature = "core_ffi_c", since = "1.64.0")]
pub use self::primitives::{
+6
View File
@@ -2,6 +2,12 @@
//!
//! 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"))]
use crate::ffi::c_void;
use crate::fmt;
+1 -1
View File
@@ -53,7 +53,7 @@
issue = "none"
)]
use crate::ffi::va_list::{VaArgSafe, VaList};
use crate::ffi::{VaArgSafe, VaList};
use crate::marker::{ConstParamTy, DiscriminantKind, PointeeSized, Tuple};
use crate::{mem, ptr};