@@ -34,8 +34,7 @@ mod num;
34
34
mod float;
35
35
mod builders;
36
36
37
- #[ cfg_attr( stage0, stable( feature = "rust1" , since = "1.0.0" ) ) ]
38
- #[ cfg_attr( not( stage0) , unstable( feature = "core" , reason = "internal to format_args!" ) ) ]
37
+ #[ unstable( feature = "core" , reason = "internal to format_args!" ) ]
39
38
#[ doc( hidden) ]
40
39
pub mod rt {
41
40
pub mod v1;
@@ -148,8 +147,7 @@ enum Void {}
148
147
/// compile time it is ensured that the function and the value have the correct
149
148
/// types, and then this struct is used to canonicalize arguments to one type.
150
149
#[ derive( Copy ) ]
151
- #[ cfg_attr( stage0, stable( feature = "rust1" , since = "1.0.0" ) ) ]
152
- #[ cfg_attr( not( stage0) , unstable( feature = "core" , reason = "internal to format_args!" ) ) ]
150
+ #[ unstable( feature = "core" , reason = "internal to format_args!" ) ]
153
151
#[ doc( hidden) ]
154
152
pub struct ArgumentV1 < ' a > {
155
153
value : & ' a Void ,
@@ -169,8 +167,7 @@ impl<'a> ArgumentV1<'a> {
169
167
}
170
168
171
169
#[ doc( hidden) ]
172
- #[ cfg_attr( stage0, stable( feature = "rust1" , since = "1.0.0" ) ) ]
173
- #[ cfg_attr( not( stage0) , unstable( feature = "core" , reason = "internal to format_args!" ) ) ]
170
+ #[ unstable( feature = "core" , reason = "internal to format_args!" ) ]
174
171
pub fn new < ' b , T > ( x : & ' b T ,
175
172
f : fn ( & T , & mut Formatter ) -> Result ) -> ArgumentV1 < ' b > {
176
173
unsafe {
@@ -182,8 +179,7 @@ impl<'a> ArgumentV1<'a> {
182
179
}
183
180
184
181
#[ doc( hidden) ]
185
- #[ cfg_attr( stage0, stable( feature = "rust1" , since = "1.0.0" ) ) ]
186
- #[ cfg_attr( not( stage0) , unstable( feature = "core" , reason = "internal to format_args!" ) ) ]
182
+ #[ unstable( feature = "core" , reason = "internal to format_args!" ) ]
187
183
pub fn from_usize ( x : & usize ) -> ArgumentV1 {
188
184
ArgumentV1 :: new ( x, ArgumentV1 :: show_usize)
189
185
}
@@ -206,8 +202,7 @@ impl<'a> Arguments<'a> {
206
202
/// When using the format_args!() macro, this function is used to generate the
207
203
/// Arguments structure.
208
204
#[ doc( hidden) ] #[ inline]
209
- #[ cfg_attr( stage0, stable( feature = "rust1" , since = "1.0.0" ) ) ]
210
- #[ cfg_attr( not( stage0) , unstable( feature = "core" , reason = "internal to format_args!" ) ) ]
205
+ #[ unstable( feature = "core" , reason = "internal to format_args!" ) ]
211
206
pub fn new_v1 ( pieces : & ' a [ & ' a str ] ,
212
207
args : & ' a [ ArgumentV1 < ' a > ] ) -> Arguments < ' a > {
213
208
Arguments {
@@ -224,8 +219,7 @@ impl<'a> Arguments<'a> {
224
219
/// created with `argumentusize`. However, failing to do so doesn't cause
225
220
/// unsafety, but will ignore invalid .
226
221
#[ doc( hidden) ] #[ inline]
227
- #[ cfg_attr( stage0, stable( feature = "rust1" , since = "1.0.0" ) ) ]
228
- #[ cfg_attr( not( stage0) , unstable( feature = "core" , reason = "internal to format_args!" ) ) ]
222
+ #[ unstable( feature = "core" , reason = "internal to format_args!" ) ]
229
223
pub fn new_v1_formatted ( pieces : & ' a [ & ' a str ] ,
230
224
args : & ' a [ ArgumentV1 < ' a > ] ,
231
225
fmt : & ' a [ rt:: v1:: Argument ] ) -> Arguments < ' a > {
0 commit comments