Skip to content

Commit 50bf78e

Browse files
authored
Unrolled build for #155754
Rollup merge of #155754 - folkertdev:hide-core-ffi-va-list, r=tgross35 make the `core::ffi::va_list` module private tracking issue: #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 #44930 (comment). r? tgross35
2 parents 80729d7 + 3851c60 commit 50bf78e

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

library/core/src/ffi/mod.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,14 @@ use crate::fmt;
2323
#[stable(feature = "c_str_module", since = "1.88.0")]
2424
pub mod c_str;
2525

26+
mod va_list;
2627
#[unstable(
2728
feature = "c_variadic",
2829
issue = "44930",
2930
reason = "the `c_variadic` feature has not been properly tested on all supported platforms"
3031
)]
3132
pub use self::va_list::{VaArgSafe, VaList};
3233

33-
#[unstable(
34-
feature = "c_variadic",
35-
issue = "44930",
36-
reason = "the `c_variadic` feature has not been properly tested on all supported platforms"
37-
)]
38-
pub mod va_list;
39-
4034
mod primitives;
4135
#[stable(feature = "core_ffi_c", since = "1.64.0")]
4236
pub use self::primitives::{

library/core/src/ffi/va_list.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
//!
33
//! Better known as "varargs".
44
5+
#![unstable(
6+
feature = "c_variadic",
7+
issue = "44930",
8+
reason = "the `c_variadic` feature has not been properly tested on all supported platforms"
9+
)]
10+
511
#[cfg(not(target_arch = "xtensa"))]
612
use crate::ffi::c_void;
713
use crate::fmt;

library/core/src/intrinsics/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
issue = "none"
5454
)]
5555

56-
use crate::ffi::va_list::{VaArgSafe, VaList};
56+
use crate::ffi::{VaArgSafe, VaList};
5757
use crate::marker::{ConstParamTy, DiscriminantKind, PointeeSized, Tuple};
5858
use crate::{mem, ptr};
5959

0 commit comments

Comments
 (0)