@@ -341,7 +341,7 @@ impl<'a> Arguments<'a> {
341341 #[ doc( hidden) ] #[ inline]
342342 #[ unstable( feature = "fmt_internals" , reason = "internal to format_args!" ,
343343 issue = "0" ) ]
344- pub const fn new_v1 ( pieces : & ' a [ & ' a str ] ,
344+ pub fn new_v1 ( pieces : & ' a [ & ' a str ] ,
345345 args : & ' a [ ArgumentV1 < ' a > ] ) -> Arguments < ' a > {
346346 Arguments {
347347 pieces,
@@ -359,7 +359,7 @@ impl<'a> Arguments<'a> {
359359 #[ doc( hidden) ] #[ inline]
360360 #[ unstable( feature = "fmt_internals" , reason = "internal to format_args!" ,
361361 issue = "0" ) ]
362- pub const fn new_v1_formatted ( pieces : & ' a [ & ' a str ] ,
362+ pub fn new_v1_formatted ( pieces : & ' a [ & ' a str ] ,
363363 args : & ' a [ ArgumentV1 < ' a > ] ,
364364 fmt : & ' a [ rt:: v1:: Argument ] ) -> Arguments < ' a > {
365365 Arguments {
@@ -1492,7 +1492,7 @@ impl<'a> Formatter<'a> {
14921492 /// assert_eq!(&format!("{:t>6}", Foo), "tttttt");
14931493 /// ```
14941494 #[ stable( feature = "fmt_flags" , since = "1.5.0" ) ]
1495- pub const fn fill ( & self ) -> char { self . fill }
1495+ pub fn fill ( & self ) -> char { self . fill }
14961496
14971497 /// Flag indicating what form of alignment was requested.
14981498 ///
@@ -1562,7 +1562,7 @@ impl<'a> Formatter<'a> {
15621562 /// assert_eq!(&format!("{}", Foo(23)), "Foo(23)");
15631563 /// ```
15641564 #[ stable( feature = "fmt_flags" , since = "1.5.0" ) ]
1565- pub const fn width ( & self ) -> Option < usize > { self . width }
1565+ pub fn width ( & self ) -> Option < usize > { self . width }
15661566
15671567 /// Optionally specified precision for numeric types.
15681568 ///
@@ -1589,7 +1589,7 @@ impl<'a> Formatter<'a> {
15891589 /// assert_eq!(&format!("{}", Foo(23.2)), "Foo(23.20)");
15901590 /// ```
15911591 #[ stable( feature = "fmt_flags" , since = "1.5.0" ) ]
1592- pub const fn precision ( & self ) -> Option < usize > { self . precision }
1592+ pub fn precision ( & self ) -> Option < usize > { self . precision }
15931593
15941594 /// Determines if the `+` flag was specified.
15951595 ///
@@ -1617,7 +1617,7 @@ impl<'a> Formatter<'a> {
16171617 /// assert_eq!(&format!("{}", Foo(23)), "Foo(23)");
16181618 /// ```
16191619 #[ stable( feature = "fmt_flags" , since = "1.5.0" ) ]
1620- pub const fn sign_plus ( & self ) -> bool {
1620+ pub fn sign_plus ( & self ) -> bool {
16211621 self . flags & ( 1 << FlagV1 :: SignPlus as u32 ) != 0
16221622 }
16231623
@@ -1645,7 +1645,7 @@ impl<'a> Formatter<'a> {
16451645 /// assert_eq!(&format!("{}", Foo(23)), "Foo(23)");
16461646 /// ```
16471647 #[ stable( feature = "fmt_flags" , since = "1.5.0" ) ]
1648- pub const fn sign_minus ( & self ) -> bool {
1648+ pub fn sign_minus ( & self ) -> bool {
16491649 self . flags & ( 1 << FlagV1 :: SignMinus as u32 ) != 0
16501650 }
16511651
@@ -1672,7 +1672,7 @@ impl<'a> Formatter<'a> {
16721672 /// assert_eq!(&format!("{}", Foo(23)), "23");
16731673 /// ```
16741674 #[ stable( feature = "fmt_flags" , since = "1.5.0" ) ]
1675- pub const fn alternate ( & self ) -> bool {
1675+ pub fn alternate ( & self ) -> bool {
16761676 self . flags & ( 1 << FlagV1 :: Alternate as u32 ) != 0
16771677 }
16781678
@@ -1697,7 +1697,7 @@ impl<'a> Formatter<'a> {
16971697 /// assert_eq!(&format!("{:04}", Foo(23)), "23");
16981698 /// ```
16991699 #[ stable( feature = "fmt_flags" , since = "1.5.0" ) ]
1700- pub const fn sign_aware_zero_pad ( & self ) -> bool {
1700+ pub fn sign_aware_zero_pad ( & self ) -> bool {
17011701 self . flags & ( 1 << FlagV1 :: SignAwareZeroPad as u32 ) != 0
17021702 }
17031703
0 commit comments