@@ -208,7 +208,7 @@ pub trait Write {
208
208
// requiring a `Sized` bound.
209
209
struct Adapter < ' a , T : ?Sized +' a > ( & ' a mut T ) ;
210
210
211
- impl < ' a , T : ?Sized > Write for Adapter < ' a , T >
211
+ impl < T : ?Sized > Write for Adapter < ' _ , T >
212
212
where T : Write
213
213
{
214
214
fn write_str ( & mut self , s : & str ) -> Result {
@@ -229,7 +229,7 @@ pub trait Write {
229
229
}
230
230
231
231
#[ stable( feature = "fmt_write_blanket_impl" , since = "1.4.0" ) ]
232
- impl < ' a , W : Write + ?Sized > Write for & ' a mut W {
232
+ impl < W : Write + ?Sized > Write for & mut W {
233
233
fn write_str ( & mut self , s : & str ) -> Result {
234
234
( * * self ) . write_str ( s)
235
235
}
@@ -291,8 +291,8 @@ pub struct ArgumentV1<'a> {
291
291
292
292
#[ unstable( feature = "fmt_internals" , reason = "internal to format_args!" ,
293
293
issue = "0" ) ]
294
- impl < ' a > Clone for ArgumentV1 < ' a > {
295
- fn clone ( & self ) -> ArgumentV1 < ' a > {
294
+ impl Clone for ArgumentV1 < ' _ > {
295
+ fn clone ( & self ) -> Self {
296
296
* self
297
297
}
298
298
}
@@ -436,14 +436,14 @@ pub struct Arguments<'a> {
436
436
}
437
437
438
438
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
439
- impl < ' a > Debug for Arguments < ' a > {
439
+ impl Debug for Arguments < ' _ > {
440
440
fn fmt ( & self , fmt : & mut Formatter ) -> Result {
441
441
Display :: fmt ( self , fmt)
442
442
}
443
443
}
444
444
445
445
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
446
- impl < ' a > Display for Arguments < ' a > {
446
+ impl Display for Arguments < ' _ > {
447
447
fn fmt ( & self , fmt : & mut Formatter ) -> Result {
448
448
write ( fmt. buf , * self )
449
449
}
@@ -1884,7 +1884,7 @@ impl<'a> Formatter<'a> {
1884
1884
}
1885
1885
1886
1886
#[ stable( since = "1.2.0" , feature = "formatter_write" ) ]
1887
- impl < ' a > Write for Formatter < ' a > {
1887
+ impl Write for Formatter < ' _ > {
1888
1888
fn write_str ( & mut self , s : & str ) -> Result {
1889
1889
self . buf . write_str ( s)
1890
1890
}
@@ -1911,11 +1911,11 @@ macro_rules! fmt_refs {
1911
1911
( $( $tr: ident) ,* ) => {
1912
1912
$(
1913
1913
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1914
- impl <' a , T : ?Sized + $tr> $tr for & ' a T {
1914
+ impl <T : ?Sized + $tr> $tr for & T {
1915
1915
fn fmt( & self , f: & mut Formatter ) -> Result { $tr:: fmt( & * * self , f) }
1916
1916
}
1917
1917
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1918
- impl <' a , T : ?Sized + $tr> $tr for & ' a mut T {
1918
+ impl <T : ?Sized + $tr> $tr for & mut T {
1919
1919
fn fmt( & self , f: & mut Formatter ) -> Result { $tr:: fmt( & * * self , f) }
1920
1920
}
1921
1921
) *
@@ -2039,14 +2039,14 @@ impl<T: ?Sized> Pointer for *mut T {
2039
2039
}
2040
2040
2041
2041
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2042
- impl < ' a , T : ?Sized > Pointer for & ' a T {
2042
+ impl < T : ?Sized > Pointer for & T {
2043
2043
fn fmt ( & self , f : & mut Formatter ) -> Result {
2044
2044
Pointer :: fmt ( & ( * self as * const T ) , f)
2045
2045
}
2046
2046
}
2047
2047
2048
2048
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2049
- impl < ' a , T : ?Sized > Pointer for & ' a mut T {
2049
+ impl < T : ?Sized > Pointer for & mut T {
2050
2050
fn fmt ( & self , f : & mut Formatter ) -> Result {
2051
2051
Pointer :: fmt ( & ( & * * self as * const T ) , f)
2052
2052
}
@@ -2153,14 +2153,14 @@ impl<T: ?Sized + Debug> Debug for RefCell<T> {
2153
2153
}
2154
2154
2155
2155
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2156
- impl < ' b , T : ?Sized + Debug > Debug for Ref < ' b , T > {
2156
+ impl < T : ?Sized + Debug > Debug for Ref < ' _ , T > {
2157
2157
fn fmt ( & self , f : & mut Formatter ) -> Result {
2158
2158
Debug :: fmt ( & * * self , f)
2159
2159
}
2160
2160
}
2161
2161
2162
2162
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
2163
- impl < ' b , T : ?Sized + Debug > Debug for RefMut < ' b , T > {
2163
+ impl < T : ?Sized + Debug > Debug for RefMut < ' _ , T > {
2164
2164
fn fmt ( & self , f : & mut Formatter ) -> Result {
2165
2165
Debug :: fmt ( & * ( self . deref ( ) ) , f)
2166
2166
}
0 commit comments