@@ -333,7 +333,6 @@ enum FlagV1 {
333333impl < ' a > Arguments < ' a > {
334334 /// When using the format_args!() macro, this function is used to generate the
335335 /// Arguments structure.
336- #[ cfg( not( bootstrap) ) ]
337336 #[ doc( hidden) ]
338337 #[ inline]
339338 #[ unstable( feature = "fmt_internals" , reason = "internal to format_args!" , issue = "none" ) ]
@@ -347,25 +346,13 @@ impl<'a> Arguments<'a> {
347346 }
348347 Arguments { pieces, fmt : None , args }
349348 }
350- #[ cfg( bootstrap) ]
351- #[ doc( hidden) ]
352- #[ inline]
353- #[ unstable( feature = "fmt_internals" , reason = "internal to format_args!" , issue = "none" ) ]
354- #[ rustc_const_unstable( feature = "const_fmt_arguments_new" , issue = "none" ) ]
355- pub const fn new_v1 ( pieces : & ' a [ & ' static str ] , args : & ' a [ ArgumentV1 < ' a > ] ) -> Arguments < ' a > {
356- if pieces. len ( ) < args. len ( ) || pieces. len ( ) > args. len ( ) + 1 {
357- panic ! ( "invalid args" ) ;
358- }
359- Arguments { pieces, fmt : None , args }
360- }
361349
362350 /// This function is used to specify nonstandard formatting parameters.
363351 /// The `pieces` array must be at least as long as `fmt` to construct
364352 /// a valid Arguments structure. Also, any `Count` within `fmt` that is
365353 /// `CountIsParam` or `CountIsNextParam` has to point to an argument
366354 /// created with `argumentusize`. However, failing to do so doesn't cause
367355 /// unsafety, but will ignore invalid .
368- #[ cfg( not( bootstrap) ) ]
369356 #[ doc( hidden) ]
370357 #[ inline]
371358 #[ unstable( feature = "fmt_internals" , reason = "internal to format_args!" , issue = "none" ) ]
@@ -377,18 +364,6 @@ impl<'a> Arguments<'a> {
377364 ) -> Arguments < ' a > {
378365 Arguments { pieces, fmt : Some ( fmt) , args }
379366 }
380- #[ cfg( bootstrap) ]
381- #[ doc( hidden) ]
382- #[ inline]
383- #[ unstable( feature = "fmt_internals" , reason = "internal to format_args!" , issue = "none" ) ]
384- #[ rustc_const_unstable( feature = "const_fmt_arguments_new" , issue = "none" ) ]
385- pub const fn new_v1_formatted (
386- pieces : & ' a [ & ' static str ] ,
387- args : & ' a [ ArgumentV1 < ' a > ] ,
388- fmt : & ' a [ rt:: v1:: Argument ] ,
389- ) -> Arguments < ' a > {
390- Arguments { pieces, fmt : Some ( fmt) , args }
391- }
392367
393368 /// Estimates the length of the formatted text.
394369 ///
0 commit comments