@@ -285,7 +285,7 @@ impl dyn Any + Send {
285285 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
286286 #[ inline]
287287 pub fn is < T : Any > ( & self ) -> bool {
288- Any :: is :: < T > ( self )
288+ < dyn Any > :: is :: < T > ( self )
289289 }
290290
291291 /// Forwards to the method defined on the type `Any`.
@@ -309,7 +309,7 @@ impl dyn Any + Send {
309309 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
310310 #[ inline]
311311 pub fn downcast_ref < T : Any > ( & self ) -> Option < & T > {
312- Any :: downcast_ref :: < T > ( self )
312+ < dyn Any > :: downcast_ref :: < T > ( self )
313313 }
314314
315315 /// Forwards to the method defined on the type `Any`.
@@ -337,7 +337,7 @@ impl dyn Any + Send {
337337 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
338338 #[ inline]
339339 pub fn downcast_mut < T : Any > ( & mut self ) -> Option < & mut T > {
340- Any :: downcast_mut :: < T > ( self )
340+ < dyn Any > :: downcast_mut :: < T > ( self )
341341 }
342342}
343343
@@ -363,7 +363,7 @@ impl dyn Any + Send + Sync {
363363 #[ stable( feature = "any_send_sync_methods" , since = "1.28.0" ) ]
364364 #[ inline]
365365 pub fn is < T : Any > ( & self ) -> bool {
366- Any :: is :: < T > ( self )
366+ < dyn Any > :: is :: < T > ( self )
367367 }
368368
369369 /// Forwards to the method defined on the type `Any`.
@@ -387,7 +387,7 @@ impl dyn Any + Send + Sync {
387387 #[ stable( feature = "any_send_sync_methods" , since = "1.28.0" ) ]
388388 #[ inline]
389389 pub fn downcast_ref < T : Any > ( & self ) -> Option < & T > {
390- Any :: downcast_ref :: < T > ( self )
390+ < dyn Any > :: downcast_ref :: < T > ( self )
391391 }
392392
393393 /// Forwards to the method defined on the type `Any`.
@@ -415,7 +415,7 @@ impl dyn Any + Send + Sync {
415415 #[ stable( feature = "any_send_sync_methods" , since = "1.28.0" ) ]
416416 #[ inline]
417417 pub fn downcast_mut < T : Any > ( & mut self ) -> Option < & mut T > {
418- Any :: downcast_mut :: < T > ( self )
418+ < dyn Any > :: downcast_mut :: < T > ( self )
419419 }
420420}
421421
0 commit comments