Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitaf74cf3

Browse files
core: erase redundant stability attrs in va_list
Now that VaList, et al. have a module, they only need one `#[unstable]`.
1 parenta5d831c commitaf74cf3

File tree

1 file changed

+0
-106
lines changed

1 file changed

+0
-106
lines changed

‎library/core/src/ffi/va_list.rs‎

Lines changed: 0 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,6 @@ use crate::ops::{Deref, DerefMut};
2121
windows,
2222
))]
2323
#[cfg_attr(not(doc), repr(transparent))]// work around https://github.com/rust-lang/rust/issues/90435
24-
#[unstable(
25-
feature ="c_variadic",
26-
reason ="the `c_variadic` feature has not been properly tested on\
27-
all supported platforms",
28-
issue ="44930"
29-
)]
3024
#[lang ="va_list"]
3125
pubstructVaListImpl<'f>{
3226
ptr:*mutc_void,
@@ -48,12 +42,6 @@ pub struct VaListImpl<'f> {
4842
target_os ="uefi",
4943
windows,
5044
))]
51-
#[unstable(
52-
feature ="c_variadic",
53-
reason ="the `c_variadic` feature has not been properly tested on\
54-
all supported platforms",
55-
issue ="44930"
56-
)]
5745
impl<'f> fmt::DebugforVaListImpl<'f>{
5846
fnfmt(&self,f:&mut fmt::Formatter<'_>) -> fmt::Result{
5947
write!(f,"va_list* {:p}",self.ptr)
@@ -73,12 +61,6 @@ impl<'f> fmt::Debug for VaListImpl<'f> {
7361
))]
7462
#[cfg_attr(not(doc), repr(C))]// work around https://github.com/rust-lang/rust/issues/66401
7563
#[derive(Debug)]
76-
#[unstable(
77-
feature ="c_variadic",
78-
reason ="the `c_variadic` feature has not been properly tested on\
79-
all supported platforms",
80-
issue ="44930"
81-
)]
8264
#[lang ="va_list"]
8365
pubstructVaListImpl<'f>{
8466
stack:*mutc_void,
@@ -93,12 +75,6 @@ pub struct VaListImpl<'f> {
9375
#[cfg(all(target_arch ="powerpc", not(target_os ="uefi"), not(windows)))]
9476
#[cfg_attr(not(doc), repr(C))]// work around https://github.com/rust-lang/rust/issues/66401
9577
#[derive(Debug)]
96-
#[unstable(
97-
feature ="c_variadic",
98-
reason ="the `c_variadic` feature has not been properly tested on\
99-
all supported platforms",
100-
issue ="44930"
101-
)]
10278
#[lang ="va_list"]
10379
pubstructVaListImpl<'f>{
10480
gpr:u8,
@@ -113,12 +89,6 @@ pub struct VaListImpl<'f> {
11389
#[cfg(target_arch ="s390x")]
11490
#[cfg_attr(not(doc), repr(C))]// work around https://github.com/rust-lang/rust/issues/66401
11591
#[derive(Debug)]
116-
#[unstable(
117-
feature ="c_variadic",
118-
reason ="the `c_variadic` feature has not been properly tested on\
119-
all supported platforms",
120-
issue ="44930"
121-
)]
12292
#[lang ="va_list"]
12393
pubstructVaListImpl<'f>{
12494
gpr:i64,
@@ -132,12 +102,6 @@ pub struct VaListImpl<'f> {
132102
#[cfg(all(target_arch ="x86_64", not(target_os ="uefi"), not(windows)))]
133103
#[cfg_attr(not(doc), repr(C))]// work around https://github.com/rust-lang/rust/issues/66401
134104
#[derive(Debug)]
135-
#[unstable(
136-
feature ="c_variadic",
137-
reason ="the `c_variadic` feature has not been properly tested on\
138-
all supported platforms",
139-
issue ="44930"
140-
)]
141105
#[lang ="va_list"]
142106
pubstructVaListImpl<'f>{
143107
gp_offset:i32,
@@ -150,12 +114,6 @@ pub struct VaListImpl<'f> {
150114
/// A wrapper for a `va_list`
151115
#[cfg_attr(not(doc), repr(transparent))]// work around https://github.com/rust-lang/rust/issues/90435
152116
#[derive(Debug)]
153-
#[unstable(
154-
feature ="c_variadic",
155-
reason ="the `c_variadic` feature has not been properly tested on\
156-
all supported platforms",
157-
issue ="44930"
158-
)]
159117
pubstructVaList<'a,'f:'a>{
160118
#[cfg(any(
161119
all(
@@ -200,12 +158,6 @@ pub struct VaList<'a, 'f: 'a> {
200158
target_os ="uefi",
201159
windows,
202160
))]
203-
#[unstable(
204-
feature ="c_variadic",
205-
reason ="the `c_variadic` feature has not been properly tested on\
206-
all supported platforms",
207-
issue ="44930"
208-
)]
209161
impl<'f>VaListImpl<'f>{
210162
/// Convert a `VaListImpl` into a `VaList` that is binary-compatible with C's `va_list`.
211163
#[inline]
@@ -226,12 +178,6 @@ impl<'f> VaListImpl<'f> {
226178
not(target_os ="uefi"),
227179
not(windows),
228180
))]
229-
#[unstable(
230-
feature ="c_variadic",
231-
reason ="the `c_variadic` feature has not been properly tested on\
232-
all supported platforms",
233-
issue ="44930"
234-
)]
235181
impl<'f>VaListImpl<'f>{
236182
/// Convert a `VaListImpl` into a `VaList` that is binary-compatible with C's `va_list`.
237183
#[inline]
@@ -240,12 +186,6 @@ impl<'f> VaListImpl<'f> {
240186
}
241187
}
242188

243-
#[unstable(
244-
feature ="c_variadic",
245-
reason ="the `c_variadic` feature has not been properly tested on\
246-
all supported platforms",
247-
issue ="44930"
248-
)]
249189
impl<'a,'f:'a>DerefforVaList<'a,'f>{
250190
typeTarget =VaListImpl<'f>;
251191

@@ -255,12 +195,6 @@ impl<'a, 'f: 'a> Deref for VaList<'a, 'f> {
255195
}
256196
}
257197

258-
#[unstable(
259-
feature ="c_variadic",
260-
reason ="the `c_variadic` feature has not been properly tested on\
261-
all supported platforms",
262-
issue ="44930"
263-
)]
264198
impl<'a,'f:'a>DerefMutforVaList<'a,'f>{
265199
#[inline]
266200
fnderef_mut(&mutself) ->&mutVaListImpl<'f>{
@@ -279,22 +213,12 @@ impl<'a, 'f: 'a> DerefMut for VaList<'a, 'f> {
279213
// improving this.
280214
mod sealed_trait{
281215
/// Trait which permits the allowed types to be used with [super::VaListImpl::arg].
282-
#[unstable(
283-
feature ="c_variadic",
284-
reason ="the `c_variadic` feature has not been properly tested on\
285-
all supported platforms",
286-
issue ="44930"
287-
)]
288216
pubtraitVaArgSafe{}
289217
}
290218

291219
macro_rules! impl_va_arg_safe{
292220
($($t:ty),+) =>{
293221
$(
294-
#[unstable(feature ="c_variadic",
295-
reason ="the `c_variadic` feature has not been properly tested on\
296-
all supported platforms",
297-
issue ="44930")]
298222
impl sealed_trait::VaArgSafefor $t{}
299223
)+
300224
}
@@ -304,27 +228,9 @@ impl_va_arg_safe! {i8, i16, i32, i64, usize}
304228
impl_va_arg_safe!{u8,u16,u32,u64,isize}
305229
impl_va_arg_safe!{f64}
306230

307-
#[unstable(
308-
feature ="c_variadic",
309-
reason ="the `c_variadic` feature has not been properly tested on\
310-
all supported platforms",
311-
issue ="44930"
312-
)]
313231
impl<T> sealed_trait::VaArgSafefor*mutT{}
314-
#[unstable(
315-
feature ="c_variadic",
316-
reason ="the `c_variadic` feature has not been properly tested on\
317-
all supported platforms",
318-
issue ="44930"
319-
)]
320232
impl<T> sealed_trait::VaArgSafefor*constT{}
321233

322-
#[unstable(
323-
feature ="c_variadic",
324-
reason ="the `c_variadic` feature has not been properly tested on\
325-
all supported platforms",
326-
issue ="44930"
327-
)]
328234
impl<'f>VaListImpl<'f>{
329235
/// Advance to the next arg.
330236
#[inline]
@@ -348,12 +254,6 @@ impl<'f> VaListImpl<'f> {
348254
}
349255
}
350256

351-
#[unstable(
352-
feature ="c_variadic",
353-
reason ="the `c_variadic` feature has not been properly tested on\
354-
all supported platforms",
355-
issue ="44930"
356-
)]
357257
impl<'f>CloneforVaListImpl<'f>{
358258
#[inline]
359259
fnclone(&self) ->Self{
@@ -366,12 +266,6 @@ impl<'f> Clone for VaListImpl<'f> {
366266
}
367267
}
368268

369-
#[unstable(
370-
feature ="c_variadic",
371-
reason ="the `c_variadic` feature has not been properly tested on\
372-
all supported platforms",
373-
issue ="44930"
374-
)]
375269
impl<'f>DropforVaListImpl<'f>{
376270
fndrop(&mutself){
377271
// FIXME: this should call `va_end`, but there's no clean way to

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp