@@ -285,7 +285,7 @@ impl dyn Any + Send {
285
285
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
286
286
#[ inline]
287
287
pub fn is < T : Any > ( & self ) -> bool {
288
- Any :: is :: < T > ( self )
288
+ < dyn Any > :: is :: < T > ( self )
289
289
}
290
290
291
291
/// Forwards to the method defined on the type `Any`.
@@ -309,7 +309,7 @@ impl dyn Any + Send {
309
309
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
310
310
#[ inline]
311
311
pub fn downcast_ref < T : Any > ( & self ) -> Option < & T > {
312
- Any :: downcast_ref :: < T > ( self )
312
+ < dyn Any > :: downcast_ref :: < T > ( self )
313
313
}
314
314
315
315
/// Forwards to the method defined on the type `Any`.
@@ -337,7 +337,7 @@ impl dyn Any + Send {
337
337
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
338
338
#[ inline]
339
339
pub fn downcast_mut < T : Any > ( & mut self ) -> Option < & mut T > {
340
- Any :: downcast_mut :: < T > ( self )
340
+ < dyn Any > :: downcast_mut :: < T > ( self )
341
341
}
342
342
}
343
343
@@ -363,7 +363,7 @@ impl dyn Any + Send + Sync {
363
363
#[ stable( feature = "any_send_sync_methods" , since = "1.28.0" ) ]
364
364
#[ inline]
365
365
pub fn is < T : Any > ( & self ) -> bool {
366
- Any :: is :: < T > ( self )
366
+ < dyn Any > :: is :: < T > ( self )
367
367
}
368
368
369
369
/// Forwards to the method defined on the type `Any`.
@@ -387,7 +387,7 @@ impl dyn Any + Send + Sync {
387
387
#[ stable( feature = "any_send_sync_methods" , since = "1.28.0" ) ]
388
388
#[ inline]
389
389
pub fn downcast_ref < T : Any > ( & self ) -> Option < & T > {
390
- Any :: downcast_ref :: < T > ( self )
390
+ < dyn Any > :: downcast_ref :: < T > ( self )
391
391
}
392
392
393
393
/// Forwards to the method defined on the type `Any`.
@@ -415,7 +415,7 @@ impl dyn Any + Send + Sync {
415
415
#[ stable( feature = "any_send_sync_methods" , since = "1.28.0" ) ]
416
416
#[ inline]
417
417
pub fn downcast_mut < T : Any > ( & mut self ) -> Option < & mut T > {
418
- Any :: downcast_mut :: < T > ( self )
418
+ < dyn Any > :: downcast_mut :: < T > ( self )
419
419
}
420
420
}
421
421
0 commit comments