@@ -324,7 +324,7 @@ impl<'a> Arguments<'a> {
324324 #[ doc( hidden) ]
325325 #[ inline]
326326 #[ unstable( feature = "fmt_internals" , reason = "internal to format_args!" , issue = "none" ) ]
327- pub fn new_v1 ( pieces : & ' a [ & ' a str ] , args : & ' a [ ArgumentV1 < ' a > ] ) -> Arguments < ' a > {
327+ pub fn new_v1 ( pieces : & ' a [ & ' static str ] , args : & ' a [ ArgumentV1 < ' a > ] ) -> Arguments < ' a > {
328328 Arguments { pieces, fmt : None , args }
329329 }
330330
@@ -338,7 +338,7 @@ impl<'a> Arguments<'a> {
338338 #[ inline]
339339 #[ unstable( feature = "fmt_internals" , reason = "internal to format_args!" , issue = "none" ) ]
340340 pub fn new_v1_formatted (
341- pieces : & ' a [ & ' a str ] ,
341+ pieces : & ' a [ & ' static str ] ,
342342 args : & ' a [ ArgumentV1 < ' a > ] ,
343343 fmt : & ' a [ rt:: v1:: Argument ] ,
344344 ) -> Arguments < ' a > {
@@ -399,7 +399,7 @@ impl<'a> Arguments<'a> {
399399#[ derive( Copy , Clone ) ]
400400pub struct Arguments < ' a > {
401401 // Format string pieces to print.
402- pieces : & ' a [ & ' a str ] ,
402+ pieces : & ' a [ & ' static str ] ,
403403
404404 // Placeholder specs, or `None` if all specs are default (as in "{}{}").
405405 fmt : Option < & ' a [ rt:: v1:: Argument ] > ,
@@ -441,7 +441,7 @@ impl<'a> Arguments<'a> {
441441 /// ```
442442 #[ unstable( feature = "fmt_as_str" , issue = "none" ) ]
443443 #[ inline]
444- pub fn as_str ( & self ) -> Option < & ' a str > {
444+ pub fn as_str ( & self ) -> Option < & ' static str > {
445445 match ( self . pieces , self . args ) {
446446 ( [ ] , [ ] ) => Some ( "" ) ,
447447 ( [ s] , [ ] ) => Some ( s) ,
0 commit comments