@@ -1558,10 +1558,12 @@ macro_rules! fmt_refs {
1558
1558
$(
1559
1559
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1560
1560
impl <' a, T : ?Sized + $tr> $tr for & ' a T {
1561
+ #[ inline]
1561
1562
fn fmt( & self , f: & mut Formatter ) -> Result { $tr:: fmt( & * * self , f) }
1562
1563
}
1563
1564
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1564
1565
impl <' a, T : ?Sized + $tr> $tr for & ' a mut T {
1566
+ #[ inline]
1565
1567
fn fmt( & self , f: & mut Formatter ) -> Result { $tr:: fmt( & * * self , f) }
1566
1568
}
1567
1569
) *
@@ -1586,6 +1588,7 @@ impl Display for ! {
1586
1588
1587
1589
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1588
1590
impl Debug for bool {
1591
+ #[ inline]
1589
1592
fn fmt ( & self , f : & mut Formatter ) -> Result {
1590
1593
Display :: fmt ( self , f)
1591
1594
}
@@ -1600,6 +1603,7 @@ impl Display for bool {
1600
1603
1601
1604
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1602
1605
impl Debug for str {
1606
+ #[ inline]
1603
1607
fn fmt ( & self , f : & mut Formatter ) -> Result {
1604
1608
f. write_char ( '"' ) ?;
1605
1609
let mut from = 0 ;
@@ -1628,6 +1632,7 @@ impl Display for str {
1628
1632
1629
1633
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1630
1634
impl Debug for char {
1635
+ #[ inline]
1631
1636
fn fmt ( & self , f : & mut Formatter ) -> Result {
1632
1637
f. write_char ( '\'' ) ?;
1633
1638
for c in self . escape_debug ( ) {
@@ -1701,10 +1706,12 @@ impl<'a, T: ?Sized> Pointer for &'a mut T {
1701
1706
1702
1707
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1703
1708
impl < T : ?Sized > Debug for * const T {
1709
+ #[ inline]
1704
1710
fn fmt ( & self , f : & mut Formatter ) -> Result { Pointer :: fmt ( self , f) }
1705
1711
}
1706
1712
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1707
1713
impl < T : ?Sized > Debug for * mut T {
1714
+ #[ inline]
1708
1715
fn fmt ( & self , f : & mut Formatter ) -> Result { Pointer :: fmt ( self , f) }
1709
1716
}
1710
1717
@@ -1718,6 +1725,7 @@ macro_rules! tuple {
1718
1725
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1719
1726
impl <$( $name: Debug ) ,* > Debug for ( $( $name, ) * ) where last_type!( $( $name, ) +) : ?Sized {
1720
1727
#[ allow( non_snake_case, unused_assignments, deprecated) ]
1728
+ #[ inline]
1721
1729
fn fmt( & self , f: & mut Formatter ) -> Result {
1722
1730
let mut builder = f. debug_tuple( "" ) ;
1723
1731
let ( $( ref $name, ) * ) = * self ;
@@ -1741,13 +1749,15 @@ tuple! { T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, }
1741
1749
1742
1750
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1743
1751
impl < T : Debug > Debug for [ T ] {
1752
+ #[ inline]
1744
1753
fn fmt ( & self , f : & mut Formatter ) -> Result {
1745
1754
f. debug_list ( ) . entries ( self . iter ( ) ) . finish ( )
1746
1755
}
1747
1756
}
1748
1757
1749
1758
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1750
1759
impl Debug for ( ) {
1760
+ #[ inline]
1751
1761
fn fmt ( & self , f : & mut Formatter ) -> Result {
1752
1762
f. pad ( "()" )
1753
1763
}
0 commit comments