@@ -22,12 +22,6 @@ use crate::ops::{Deref, DerefMut};
2222 windows,
2323) ) ]
2424#[ cfg_attr( not( doc) , repr( transparent) ) ] // work around https://github.com/rust-lang/rust/issues/90435
25- #[ unstable(
26- feature = "c_variadic" ,
27- reason = "the `c_variadic` feature has not been properly tested on \
28- all supported platforms",
29- issue = "44930"
30- ) ]
3125#[ lang = "va_list" ]
3226pub struct VaListImpl < ' f > {
3327 ptr : * mut c_void ,
@@ -49,12 +43,6 @@ pub struct VaListImpl<'f> {
4943 target_os = "uefi" ,
5044 windows,
5145) ) ]
52- #[ unstable(
53- feature = "c_variadic" ,
54- reason = "the `c_variadic` feature has not been properly tested on \
55- all supported platforms",
56- issue = "44930"
57- ) ]
5846impl < ' f > fmt:: Debug for VaListImpl < ' f > {
5947 fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
6048 write ! ( f, "va_list* {:p}" , self . ptr)
@@ -74,12 +62,6 @@ impl<'f> fmt::Debug for VaListImpl<'f> {
7462) ) ]
7563#[ cfg_attr( not( doc) , repr( C ) ) ] // work around https://github.com/rust-lang/rust/issues/66401
7664#[ derive( Debug ) ]
77- #[ unstable(
78- feature = "c_variadic" ,
79- reason = "the `c_variadic` feature has not been properly tested on \
80- all supported platforms",
81- issue = "44930"
82- ) ]
8365#[ lang = "va_list" ]
8466pub struct VaListImpl < ' f > {
8567 stack : * mut c_void ,
@@ -94,12 +76,6 @@ pub struct VaListImpl<'f> {
9476#[ cfg( all( target_arch = "powerpc" , not( target_os = "uefi" ) , not( windows) ) ) ]
9577#[ cfg_attr( not( doc) , repr( C ) ) ] // work around https://github.com/rust-lang/rust/issues/66401
9678#[ derive( Debug ) ]
97- #[ unstable(
98- feature = "c_variadic" ,
99- reason = "the `c_variadic` feature has not been properly tested on \
100- all supported platforms",
101- issue = "44930"
102- ) ]
10379#[ lang = "va_list" ]
10480pub struct VaListImpl < ' f > {
10581 gpr : u8 ,
@@ -114,12 +90,6 @@ pub struct VaListImpl<'f> {
11490#[ cfg( target_arch = "s390x" ) ]
11591#[ cfg_attr( not( doc) , repr( C ) ) ] // work around https://github.com/rust-lang/rust/issues/66401
11692#[ derive( Debug ) ]
117- #[ unstable(
118- feature = "c_variadic" ,
119- reason = "the `c_variadic` feature has not been properly tested on \
120- all supported platforms",
121- issue = "44930"
122- ) ]
12393#[ lang = "va_list" ]
12494pub struct VaListImpl < ' f > {
12595 gpr : i64 ,
@@ -133,12 +103,6 @@ pub struct VaListImpl<'f> {
133103#[ cfg( all( target_arch = "x86_64" , not( target_os = "uefi" ) , not( windows) ) ) ]
134104#[ cfg_attr( not( doc) , repr( C ) ) ] // work around https://github.com/rust-lang/rust/issues/66401
135105#[ derive( Debug ) ]
136- #[ unstable(
137- feature = "c_variadic" ,
138- reason = "the `c_variadic` feature has not been properly tested on \
139- all supported platforms",
140- issue = "44930"
141- ) ]
142106#[ lang = "va_list" ]
143107pub struct VaListImpl < ' f > {
144108 gp_offset : i32 ,
@@ -151,12 +115,6 @@ pub struct VaListImpl<'f> {
151115/// A wrapper for a `va_list`
152116#[ cfg_attr( not( doc) , repr( transparent) ) ] // work around https://github.com/rust-lang/rust/issues/90435
153117#[ derive( Debug ) ]
154- #[ unstable(
155- feature = "c_variadic" ,
156- reason = "the `c_variadic` feature has not been properly tested on \
157- all supported platforms",
158- issue = "44930"
159- ) ]
160118pub struct VaList < ' a , ' f : ' a > {
161119 #[ cfg( any(
162120 all(
@@ -201,12 +159,6 @@ pub struct VaList<'a, 'f: 'a> {
201159 target_os = "uefi" ,
202160 windows,
203161) ) ]
204- #[ unstable(
205- feature = "c_variadic" ,
206- reason = "the `c_variadic` feature has not been properly tested on \
207- all supported platforms",
208- issue = "44930"
209- ) ]
210162impl < ' f > VaListImpl < ' f > {
211163 /// Convert a `VaListImpl` into a `VaList` that is binary-compatible with C's `va_list`.
212164 #[ inline]
@@ -227,12 +179,6 @@ impl<'f> VaListImpl<'f> {
227179 not( target_os = "uefi" ) ,
228180 not( windows) ,
229181) ) ]
230- #[ unstable(
231- feature = "c_variadic" ,
232- reason = "the `c_variadic` feature has not been properly tested on \
233- all supported platforms",
234- issue = "44930"
235- ) ]
236182impl < ' f > VaListImpl < ' f > {
237183 /// Convert a `VaListImpl` into a `VaList` that is binary-compatible with C's `va_list`.
238184 #[ inline]
@@ -241,12 +187,6 @@ impl<'f> VaListImpl<'f> {
241187 }
242188}
243189
244- #[ unstable(
245- feature = "c_variadic" ,
246- reason = "the `c_variadic` feature has not been properly tested on \
247- all supported platforms",
248- issue = "44930"
249- ) ]
250190impl < ' a , ' f : ' a > Deref for VaList < ' a , ' f > {
251191 type Target = VaListImpl < ' f > ;
252192
@@ -256,12 +196,6 @@ impl<'a, 'f: 'a> Deref for VaList<'a, 'f> {
256196 }
257197}
258198
259- #[ unstable(
260- feature = "c_variadic" ,
261- reason = "the `c_variadic` feature has not been properly tested on \
262- all supported platforms",
263- issue = "44930"
264- ) ]
265199impl < ' a , ' f : ' a > DerefMut for VaList < ' a , ' f > {
266200 #[ inline]
267201 fn deref_mut ( & mut self ) -> & mut VaListImpl < ' f > {
@@ -280,22 +214,12 @@ impl<'a, 'f: 'a> DerefMut for VaList<'a, 'f> {
280214// improving this.
281215mod sealed_trait {
282216 /// Trait which permits the allowed types to be used with [super::VaListImpl::arg].
283- #[ unstable(
284- feature = "c_variadic" ,
285- reason = "the `c_variadic` feature has not been properly tested on \
286- all supported platforms",
287- issue = "44930"
288- ) ]
289217 pub trait VaArgSafe { }
290218}
291219
292220macro_rules! impl_va_arg_safe {
293221 ( $( $t: ty) ,+) => {
294222 $(
295- #[ unstable( feature = "c_variadic" ,
296- reason = "the `c_variadic` feature has not been properly tested on \
297- all supported platforms",
298- issue = "44930" ) ]
299223 impl sealed_trait:: VaArgSafe for $t { }
300224 ) +
301225 }
@@ -305,27 +229,9 @@ impl_va_arg_safe! {i8, i16, i32, i64, usize}
305229impl_va_arg_safe ! { u8 , u16 , u32 , u64 , isize }
306230impl_va_arg_safe ! { f64 }
307231
308- #[ unstable(
309- feature = "c_variadic" ,
310- reason = "the `c_variadic` feature has not been properly tested on \
311- all supported platforms",
312- issue = "44930"
313- ) ]
314232impl < T > sealed_trait:: VaArgSafe for * mut T { }
315- #[ unstable(
316- feature = "c_variadic" ,
317- reason = "the `c_variadic` feature has not been properly tested on \
318- all supported platforms",
319- issue = "44930"
320- ) ]
321233impl < T > sealed_trait:: VaArgSafe for * const T { }
322234
323- #[ unstable(
324- feature = "c_variadic" ,
325- reason = "the `c_variadic` feature has not been properly tested on \
326- all supported platforms",
327- issue = "44930"
328- ) ]
329235impl < ' f > VaListImpl < ' f > {
330236 /// Advance to the next arg.
331237 #[ inline]
@@ -349,12 +255,6 @@ impl<'f> VaListImpl<'f> {
349255 }
350256}
351257
352- #[ unstable(
353- feature = "c_variadic" ,
354- reason = "the `c_variadic` feature has not been properly tested on \
355- all supported platforms",
356- issue = "44930"
357- ) ]
358258impl < ' f > Clone for VaListImpl < ' f > {
359259 #[ inline]
360260 fn clone ( & self ) -> Self {
@@ -367,12 +267,6 @@ impl<'f> Clone for VaListImpl<'f> {
367267 }
368268}
369269
370- #[ unstable(
371- feature = "c_variadic" ,
372- reason = "the `c_variadic` feature has not been properly tested on \
373- all supported platforms",
374- issue = "44930"
375- ) ]
376270impl < ' f > Drop for VaListImpl < ' f > {
377271 fn drop ( & mut self ) {
378272 // FIXME: this should call `va_end`, but there's no clean way to
0 commit comments