diff options
| author | bors <bors@rust-lang.org> | 2018-11-29 19:28:21 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-11-29 19:28:21 +0000 |
| commit | 3e90a12a8a95933604a8b609197fce61bb24a38c (patch) | |
| tree | cf4c1b0648179447fb3b5de1f51d2645c8b693f6 /src/libstd | |
| parent | 3dde9e132207b5a40e12f8d5a1a363ebea60e0b0 (diff) | |
| parent | e9e084f5fa8820aca67e5cf0ec301e52bbae1028 (diff) | |
| download | rust-3e90a12a8a95933604a8b609197fce61bb24a38c.tar.gz rust-3e90a12a8a95933604a8b609197fce61bb24a38c.zip | |
Auto merge of #49878 - dlrobertson:va_list_pt0, r=eddyb
libcore: Add VaList and variadic arg handling intrinsics ## Summary - Add intrinsics for `va_start`, `va_end`, `va_copy`, and `va_arg`. - Add `core::va_list::VaList` to `libcore`. Part 1 of (at least) 3 for #44930 Comments and critiques are very much welcomed 😄
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/ffi/mod.rs | 7 | ||||
| -rw-r--r-- | src/libstd/lib.rs | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/libstd/ffi/mod.rs b/src/libstd/ffi/mod.rs index f1f3742996b..bd5fc3fa24a 100644 --- a/src/libstd/ffi/mod.rs +++ b/src/libstd/ffi/mod.rs @@ -174,5 +174,12 @@ pub use self::os_str::{OsString, OsStr}; #[stable(feature = "raw_os", since = "1.1.0")] pub use core::ffi::c_void; +#[cfg(not(stage0))] +#[unstable(feature = "c_variadic", + reason = "the `c_variadic` feature has not been properly tested on \ + all supported platforms", + issue = "27745")] +pub use core::ffi::VaList; + mod c_str; mod os_str; diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs index 575903d576a..5945ba6b090 100644 --- a/src/libstd/lib.rs +++ b/src/libstd/lib.rs @@ -244,6 +244,7 @@ #![feature(array_error_internals)] #![feature(asm)] #![feature(box_syntax)] +#![feature(c_variadic)] #![feature(cfg_target_has_atomic)] #![feature(cfg_target_thread_local)] #![feature(cfg_target_vendor)] |
