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

Commit8f1c664

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

File tree

1 file changed

+0
-106
lines changed

1 file changed

+0
-106
lines changed

‎core/src/ffi/va_list.rs‎

Lines changed: 0 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,6 @@ use crate::ops::{Deref, DerefMut};
2424
windows,
2525
))]
2626
#[cfg_attr(not(doc), repr(transparent))]// work around https://github.com/rust-lang/rust/issues/90435
27-
#[unstable(
28-
feature ="c_variadic",
29-
reason ="the `c_variadic` feature has not been properly tested on\
30-
all supported platforms",
31-
issue ="44930"
32-
)]
3327
#[lang ="va_list"]
3428
pubstructVaListImpl<'f>{
3529
ptr:*mutc_void,
@@ -51,12 +45,6 @@ pub struct VaListImpl<'f> {
5145
target_os ="uefi",
5246
windows,
5347
))]
54-
#[unstable(
55-
feature ="c_variadic",
56-
reason ="the `c_variadic` feature has not been properly tested on\
57-
all supported platforms",
58-
issue ="44930"
59-
)]
6048
impl<'f> fmt::DebugforVaListImpl<'f>{
6149
fnfmt(&self,f:&mut fmt::Formatter<'_>) -> fmt::Result{
6250
write!(f,"va_list* {:p}",self.ptr)
@@ -76,12 +64,6 @@ impl<'f> fmt::Debug for VaListImpl<'f> {
7664
))]
7765
#[cfg_attr(not(doc), repr(C))]// work around https://github.com/rust-lang/rust/issues/66401
7866
#[derive(Debug)]
79-
#[unstable(
80-
feature ="c_variadic",
81-
reason ="the `c_variadic` feature has not been properly tested on\
82-
all supported platforms",
83-
issue ="44930"
84-
)]
8567
#[lang ="va_list"]
8668
pubstructVaListImpl<'f>{
8769
stack:*mutc_void,
@@ -96,12 +78,6 @@ pub struct VaListImpl<'f> {
9678
#[cfg(all(target_arch ="powerpc", not(target_os ="uefi"), not(windows)))]
9779
#[cfg_attr(not(doc), repr(C))]// work around https://github.com/rust-lang/rust/issues/66401
9880
#[derive(Debug)]
99-
#[unstable(
100-
feature ="c_variadic",
101-
reason ="the `c_variadic` feature has not been properly tested on\
102-
all supported platforms",
103-
issue ="44930"
104-
)]
10581
#[lang ="va_list"]
10682
pubstructVaListImpl<'f>{
10783
gpr:u8,
@@ -116,12 +92,6 @@ pub struct VaListImpl<'f> {
11692
#[cfg(target_arch ="s390x")]
11793
#[cfg_attr(not(doc), repr(C))]// work around https://github.com/rust-lang/rust/issues/66401
11894
#[derive(Debug)]
119-
#[unstable(
120-
feature ="c_variadic",
121-
reason ="the `c_variadic` feature has not been properly tested on\
122-
all supported platforms",
123-
issue ="44930"
124-
)]
12595
#[lang ="va_list"]
12696
pubstructVaListImpl<'f>{
12797
gpr:i64,
@@ -135,12 +105,6 @@ pub struct VaListImpl<'f> {
135105
#[cfg(all(target_arch ="x86_64", not(target_os ="uefi"), not(windows)))]
136106
#[cfg_attr(not(doc), repr(C))]// work around https://github.com/rust-lang/rust/issues/66401
137107
#[derive(Debug)]
138-
#[unstable(
139-
feature ="c_variadic",
140-
reason ="the `c_variadic` feature has not been properly tested on\
141-
all supported platforms",
142-
issue ="44930"
143-
)]
144108
#[lang ="va_list"]
145109
pubstructVaListImpl<'f>{
146110
gp_offset:i32,
@@ -153,12 +117,6 @@ pub struct VaListImpl<'f> {
153117
/// A wrapper for a `va_list`
154118
#[cfg_attr(not(doc), repr(transparent))]// work around https://github.com/rust-lang/rust/issues/90435
155119
#[derive(Debug)]
156-
#[unstable(
157-
feature ="c_variadic",
158-
reason ="the `c_variadic` feature has not been properly tested on\
159-
all supported platforms",
160-
issue ="44930"
161-
)]
162120
pubstructVaList<'a,'f:'a>{
163121
#[cfg(any(
164122
all(
@@ -203,12 +161,6 @@ pub struct VaList<'a, 'f: 'a> {
203161
target_os ="uefi",
204162
windows,
205163
))]
206-
#[unstable(
207-
feature ="c_variadic",
208-
reason ="the `c_variadic` feature has not been properly tested on\
209-
all supported platforms",
210-
issue ="44930"
211-
)]
212164
impl<'f>VaListImpl<'f>{
213165
/// Convert a `VaListImpl` into a `VaList` that is binary-compatible with C's `va_list`.
214166
#[inline]
@@ -229,12 +181,6 @@ impl<'f> VaListImpl<'f> {
229181
not(target_os ="uefi"),
230182
not(windows),
231183
))]
232-
#[unstable(
233-
feature ="c_variadic",
234-
reason ="the `c_variadic` feature has not been properly tested on\
235-
all supported platforms",
236-
issue ="44930"
237-
)]
238184
impl<'f>VaListImpl<'f>{
239185
/// Convert a `VaListImpl` into a `VaList` that is binary-compatible with C's `va_list`.
240186
#[inline]
@@ -243,12 +189,6 @@ impl<'f> VaListImpl<'f> {
243189
}
244190
}
245191

246-
#[unstable(
247-
feature ="c_variadic",
248-
reason ="the `c_variadic` feature has not been properly tested on\
249-
all supported platforms",
250-
issue ="44930"
251-
)]
252192
impl<'a,'f:'a>DerefforVaList<'a,'f>{
253193
typeTarget =VaListImpl<'f>;
254194

@@ -258,12 +198,6 @@ impl<'a, 'f: 'a> Deref for VaList<'a, 'f> {
258198
}
259199
}
260200

261-
#[unstable(
262-
feature ="c_variadic",
263-
reason ="the `c_variadic` feature has not been properly tested on\
264-
all supported platforms",
265-
issue ="44930"
266-
)]
267201
impl<'a,'f:'a>DerefMutforVaList<'a,'f>{
268202
#[inline]
269203
fnderef_mut(&mutself) ->&mutVaListImpl<'f>{
@@ -282,22 +216,12 @@ impl<'a, 'f: 'a> DerefMut for VaList<'a, 'f> {
282216
// improving this.
283217
mod sealed_trait{
284218
/// Trait which permits the allowed types to be used with [super::VaListImpl::arg].
285-
#[unstable(
286-
feature ="c_variadic",
287-
reason ="the `c_variadic` feature has not been properly tested on\
288-
all supported platforms",
289-
issue ="44930"
290-
)]
291219
pubunsafetraitVaArgSafe{}
292220
}
293221

294222
macro_rules! impl_va_arg_safe{
295223
($($t:ty),+) =>{
296224
$(
297-
#[unstable(feature ="c_variadic",
298-
reason ="the `c_variadic` feature has not been properly tested on\
299-
all supported platforms",
300-
issue ="44930")]
301225
unsafeimpl sealed_trait::VaArgSafefor $t{}
302226
)+
303227
}
@@ -307,27 +231,9 @@ impl_va_arg_safe! {i8, i16, i32, i64, usize}
307231
impl_va_arg_safe!{u8,u16,u32,u64,isize}
308232
impl_va_arg_safe!{f64}
309233

310-
#[unstable(
311-
feature ="c_variadic",
312-
reason ="the `c_variadic` feature has not been properly tested on\
313-
all supported platforms",
314-
issue ="44930"
315-
)]
316234
unsafeimpl<T> sealed_trait::VaArgSafefor*mutT{}
317-
#[unstable(
318-
feature ="c_variadic",
319-
reason ="the `c_variadic` feature has not been properly tested on\
320-
all supported platforms",
321-
issue ="44930"
322-
)]
323235
unsafeimpl<T> sealed_trait::VaArgSafefor*constT{}
324236

325-
#[unstable(
326-
feature ="c_variadic",
327-
reason ="the `c_variadic` feature has not been properly tested on\
328-
all supported platforms",
329-
issue ="44930"
330-
)]
331237
impl<'f>VaListImpl<'f>{
332238
/// Advance to the next arg.
333239
#[inline]
@@ -351,12 +257,6 @@ impl<'f> VaListImpl<'f> {
351257
}
352258
}
353259

354-
#[unstable(
355-
feature ="c_variadic",
356-
reason ="the `c_variadic` feature has not been properly tested on\
357-
all supported platforms",
358-
issue ="44930"
359-
)]
360260
impl<'f>CloneforVaListImpl<'f>{
361261
#[inline]
362262
fnclone(&self) ->Self{
@@ -369,12 +269,6 @@ impl<'f> Clone for VaListImpl<'f> {
369269
}
370270
}
371271

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp