@@ -133,7 +133,7 @@ impl<'a, 'b: 'a> DebugStruct<'a, 'b> {
133
133
/// );
134
134
/// ```
135
135
#[ 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 {
137
137
self . result = self . result . and_then ( |_| {
138
138
if self . is_pretty ( ) {
139
139
if !self . has_fields {
@@ -330,7 +330,7 @@ impl<'a, 'b: 'a> DebugTuple<'a, 'b> {
330
330
/// );
331
331
/// ```
332
332
#[ 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 {
334
334
self . result = self . result . and_then ( |_| {
335
335
if self . is_pretty ( ) {
336
336
if self . fields == 0 {
@@ -492,7 +492,7 @@ impl<'a, 'b: 'a> DebugSet<'a, 'b> {
492
492
/// );
493
493
/// ```
494
494
#[ 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 {
496
496
self . inner . entry ( entry) ;
497
497
self
498
498
}
@@ -521,7 +521,7 @@ impl<'a, 'b: 'a> DebugSet<'a, 'b> {
521
521
/// );
522
522
/// ```
523
523
#[ 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
525
525
where
526
526
D : fmt:: Debug ,
527
527
I : IntoIterator < Item = D > ,
@@ -624,7 +624,7 @@ impl<'a, 'b: 'a> DebugList<'a, 'b> {
624
624
/// );
625
625
/// ```
626
626
#[ 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 {
628
628
self . inner . entry ( entry) ;
629
629
self
630
630
}
@@ -653,7 +653,7 @@ impl<'a, 'b: 'a> DebugList<'a, 'b> {
653
653
/// );
654
654
/// ```
655
655
#[ 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
657
657
where
658
658
D : fmt:: Debug ,
659
659
I : IntoIterator < Item = D > ,
@@ -760,7 +760,7 @@ impl<'a, 'b: 'a> DebugMap<'a, 'b> {
760
760
/// );
761
761
/// ```
762
762
#[ 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 {
764
764
self . key ( key) . value ( value)
765
765
}
766
766
@@ -797,7 +797,7 @@ impl<'a, 'b: 'a> DebugMap<'a, 'b> {
797
797
/// );
798
798
/// ```
799
799
#[ 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 {
801
801
self . result = self . result . and_then ( |_| {
802
802
assert ! (
803
803
!self . has_key,
@@ -862,7 +862,7 @@ impl<'a, 'b: 'a> DebugMap<'a, 'b> {
862
862
/// );
863
863
/// ```
864
864
#[ 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 {
866
866
self . result = self . result . and_then ( |_| {
867
867
assert ! ( self . has_key, "attempted to format a map value before its key" ) ;
868
868
@@ -908,7 +908,7 @@ impl<'a, 'b: 'a> DebugMap<'a, 'b> {
908
908
/// );
909
909
/// ```
910
910
#[ 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
912
912
where
913
913
K : fmt:: Debug ,
914
914
V : fmt:: Debug ,
0 commit comments