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 5
5
use crate :: ffi:: c_void;
6
6
#[ allow( unused_imports) ]
7
7
use crate :: fmt;
8
+ use crate :: intrinsics:: va_list:: { va_arg, va_copy, va_end} ;
8
9
use crate :: marker:: { PhantomData , PhantomInvariantLifetime } ;
9
10
use crate :: ops:: { Deref , DerefMut } ;
10
11
@@ -280,20 +281,3 @@ impl<'f> Drop for VaListImpl<'f> {
280
281
// This works for now, since `va_end` is a no-op on all current LLVM targets.
281
282
}
282
283
}
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;
61
61
pub mod fallback;
62
62
pub mod mir;
63
63
pub mod simd;
64
+ pub ( crate ) mod va_list;
64
65
65
66
// These imports are used for simplifying intra-doc links
66
67
#[ 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