File tree Expand file tree Collapse file tree 3 files changed +19
-17
lines changed Expand file tree Collapse file tree 3 files changed +19
-17
lines changed Original file line number Diff line number Diff line change 55use crate :: ffi:: c_void;
66#[ allow( unused_imports) ]
77use crate :: fmt;
8+ use crate :: intrinsics:: va_list:: { va_arg, va_copy, va_end} ;
89use crate :: marker:: { PhantomData , PhantomInvariantLifetime } ;
910use crate :: ops:: { Deref , DerefMut } ;
1011
@@ -280,20 +281,3 @@ impl<'f> Drop for VaListImpl<'f> {
280281 // This works for now, since `va_end` is a no-op on all current LLVM targets.
281282 }
282283}
283-
284- /// Destroy the arglist `ap` after initialization with `va_start` or
285- /// `va_copy`.
286- #[ rustc_intrinsic]
287- #[ rustc_nounwind]
288- unsafe fn va_end ( ap : & mut VaListImpl < ' _ > ) ;
289-
290- /// Copies the current location of arglist `src` to the arglist `dst`.
291- #[ rustc_intrinsic]
292- #[ rustc_nounwind]
293- unsafe fn va_copy < ' f > ( dest : * mut VaListImpl < ' f > , src : & VaListImpl < ' f > ) ;
294-
295- /// Loads an argument of type `T` from the `va_list` `ap` and increment the
296- /// argument `ap` points to.
297- #[ rustc_intrinsic]
298- #[ rustc_nounwind]
299- unsafe fn va_arg < T : VaArgSafe > ( ap : & mut VaListImpl < ' _ > ) -> T ;
Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ mod bounds;
6161pub mod fallback;
6262pub mod mir;
6363pub mod simd;
64+ pub ( crate ) mod va_list;
6465
6566// These imports are used for simplifying intra-doc links
6667#[ allow( unused_imports) ]
Original file line number Diff line number Diff line change 1+ use crate :: ffi:: va_list:: { VaArgSafe , VaListImpl } ;
2+
3+ /// Copies the current location of arglist `src` to the arglist `dst`.
4+ #[ rustc_intrinsic]
5+ #[ rustc_nounwind]
6+ pub ( crate ) unsafe fn va_copy < ' f > ( dest : * mut VaListImpl < ' f > , src : & VaListImpl < ' f > ) ;
7+
8+ /// Loads an argument of type `T` from the `va_list` `ap` and increment the
9+ /// argument `ap` points to.
10+ #[ rustc_intrinsic]
11+ #[ rustc_nounwind]
12+ pub ( crate ) unsafe fn va_arg < T : VaArgSafe > ( ap : & mut VaListImpl < ' _ > ) -> T ;
13+
14+ /// Destroy the arglist `ap` after initialization with `va_start` or `va_copy`.
15+ #[ rustc_intrinsic]
16+ #[ rustc_nounwind]
17+ pub ( crate ) unsafe fn va_end ( ap : & mut VaListImpl < ' _ > ) ;
You can’t perform that action at this time.
0 commit comments