about summary refs log tree commit diff
path: root/library/std
diff options
context:
space:
mode:
authorFolkert de Vries <folkert@folkertdev.nl>2025-05-21 14:21:33 +0200
committerFolkert de Vries <folkert@folkertdev.nl>2025-05-21 15:36:29 +0200
commitd8a22a281cc20dc58f1da62be02048622392da05 (patch)
treeb3c7d8751fd537743666a4bd5dad03cc57a42a77 /library/std
parent4455c8937007f3cc3c078375a335d86dbab391ce (diff)
limit impls of `VaArgSafe` to just types that are actually safe
8 and 16-bit integers are subject to upcasting in C, and hence are not reliably safe. users should perform their own casting and deal with the consequences
Diffstat (limited to 'library/std')
-rw-r--r--library/std/src/ffi/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/ffi/mod.rs b/library/std/src/ffi/mod.rs
index 56791609910..024cb71b915 100644
--- a/library/std/src/ffi/mod.rs
+++ b/library/std/src/ffi/mod.rs
@@ -172,7 +172,7 @@ pub use core::ffi::c_void;
               all supported platforms",
     issue = "44930"
 )]
-pub use core::ffi::{VaList, VaListImpl};
+pub use core::ffi::{VaArgSafe, VaList, VaListImpl};
 #[stable(feature = "core_ffi_c", since = "1.64.0")]
 pub use core::ffi::{
     c_char, c_double, c_float, c_int, c_long, c_longlong, c_schar, c_short, c_uchar, c_uint,