@@ -133,7 +133,7 @@ impl<'a, 'b: 'a> DebugStruct<'a, 'b> {
133133 /// );
134134 /// ```
135135 #[ stable( feature = "debug_builders" , since = "1.2.0" ) ]
136- pub fn field ( & mut self , name : & str , value : & dyn fmt:: Debug ) -> & mut DebugStruct < ' a , ' b > {
136+ pub fn field ( & mut self , name : & str , value : & dyn fmt:: Debug ) -> & mut Self {
137137 self . result = self . result . and_then ( |_| {
138138 if self . is_pretty ( ) {
139139 if !self . has_fields {
@@ -330,7 +330,7 @@ impl<'a, 'b: 'a> DebugTuple<'a, 'b> {
330330 /// );
331331 /// ```
332332 #[ stable( feature = "debug_builders" , since = "1.2.0" ) ]
333- pub fn field ( & mut self , value : & dyn fmt:: Debug ) -> & mut DebugTuple < ' a , ' b > {
333+ pub fn field ( & mut self , value : & dyn fmt:: Debug ) -> & mut Self {
334334 self . result = self . result . and_then ( |_| {
335335 if self . is_pretty ( ) {
336336 if self . fields == 0 {
@@ -492,7 +492,7 @@ impl<'a, 'b: 'a> DebugSet<'a, 'b> {
492492 /// );
493493 /// ```
494494 #[ stable( feature = "debug_builders" , since = "1.2.0" ) ]
495- pub fn entry ( & mut self , entry : & dyn fmt:: Debug ) -> & mut DebugSet < ' a , ' b > {
495+ pub fn entry ( & mut self , entry : & dyn fmt:: Debug ) -> & mut Self {
496496 self . inner . entry ( entry) ;
497497 self
498498 }
@@ -521,7 +521,7 @@ impl<'a, 'b: 'a> DebugSet<'a, 'b> {
521521 /// );
522522 /// ```
523523 #[ stable( feature = "debug_builders" , since = "1.2.0" ) ]
524- pub fn entries < D , I > ( & mut self , entries : I ) -> & mut DebugSet < ' a , ' b >
524+ pub fn entries < D , I > ( & mut self , entries : I ) -> & mut Self
525525 where
526526 D : fmt:: Debug ,
527527 I : IntoIterator < Item = D > ,
@@ -624,7 +624,7 @@ impl<'a, 'b: 'a> DebugList<'a, 'b> {
624624 /// );
625625 /// ```
626626 #[ stable( feature = "debug_builders" , since = "1.2.0" ) ]
627- pub fn entry ( & mut self , entry : & dyn fmt:: Debug ) -> & mut DebugList < ' a , ' b > {
627+ pub fn entry ( & mut self , entry : & dyn fmt:: Debug ) -> & mut Self {
628628 self . inner . entry ( entry) ;
629629 self
630630 }
@@ -653,7 +653,7 @@ impl<'a, 'b: 'a> DebugList<'a, 'b> {
653653 /// );
654654 /// ```
655655 #[ stable( feature = "debug_builders" , since = "1.2.0" ) ]
656- pub fn entries < D , I > ( & mut self , entries : I ) -> & mut DebugList < ' a , ' b >
656+ pub fn entries < D , I > ( & mut self , entries : I ) -> & mut Self
657657 where
658658 D : fmt:: Debug ,
659659 I : IntoIterator < Item = D > ,
@@ -760,7 +760,7 @@ impl<'a, 'b: 'a> DebugMap<'a, 'b> {
760760 /// );
761761 /// ```
762762 #[ stable( feature = "debug_builders" , since = "1.2.0" ) ]
763- pub fn entry ( & mut self , key : & dyn fmt:: Debug , value : & dyn fmt:: Debug ) -> & mut DebugMap < ' a , ' b > {
763+ pub fn entry ( & mut self , key : & dyn fmt:: Debug , value : & dyn fmt:: Debug ) -> & mut Self {
764764 self . key ( key) . value ( value)
765765 }
766766
@@ -797,7 +797,7 @@ impl<'a, 'b: 'a> DebugMap<'a, 'b> {
797797 /// );
798798 /// ```
799799 #[ unstable( feature = "debug_map_key_value" , reason = "recently added" , issue = "62482" ) ]
800- pub fn key ( & mut self , key : & dyn fmt:: Debug ) -> & mut DebugMap < ' a , ' b > {
800+ pub fn key ( & mut self , key : & dyn fmt:: Debug ) -> & mut Self {
801801 self . result = self . result . and_then ( |_| {
802802 assert ! (
803803 !self . has_key,
@@ -862,7 +862,7 @@ impl<'a, 'b: 'a> DebugMap<'a, 'b> {
862862 /// );
863863 /// ```
864864 #[ unstable( feature = "debug_map_key_value" , reason = "recently added" , issue = "62482" ) ]
865- pub fn value ( & mut self , value : & dyn fmt:: Debug ) -> & mut DebugMap < ' a , ' b > {
865+ pub fn value ( & mut self , value : & dyn fmt:: Debug ) -> & mut Self {
866866 self . result = self . result . and_then ( |_| {
867867 assert ! ( self . has_key, "attempted to format a map value before its key" ) ;
868868
@@ -908,7 +908,7 @@ impl<'a, 'b: 'a> DebugMap<'a, 'b> {
908908 /// );
909909 /// ```
910910 #[ stable( feature = "debug_builders" , since = "1.2.0" ) ]
911- pub fn entries < K , V , I > ( & mut self , entries : I ) -> & mut DebugMap < ' a , ' b >
911+ pub fn entries < K , V , I > ( & mut self , entries : I ) -> & mut Self
912912 where
913913 K : fmt:: Debug ,
914914 V : fmt:: Debug ,
0 commit comments