File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -1527,6 +1527,8 @@ impl<A: Allocator> Box<dyn Any, A> {
1527
1527
///
1528
1528
/// The contained value must be of type `T`. Calling this method
1529
1529
/// with the incorrect type is *undefined behavior*.
1530
+ ///
1531
+ /// [`downcast`]: Self::downcast
1530
1532
#[ inline]
1531
1533
#[ unstable( feature = "downcast_unchecked" , issue = "90850" ) ]
1532
1534
pub unsafe fn downcast_unchecked < T : Any > ( self ) -> Box < T , A > {
@@ -1584,6 +1586,8 @@ impl<A: Allocator> Box<dyn Any + Send, A> {
1584
1586
///
1585
1587
/// The contained value must be of type `T`. Calling this method
1586
1588
/// with the incorrect type is *undefined behavior*.
1589
+ ///
1590
+ /// [`downcast`]: Self::downcast
1587
1591
#[ inline]
1588
1592
#[ unstable( feature = "downcast_unchecked" , issue = "90850" ) ]
1589
1593
pub unsafe fn downcast_unchecked < T : Any > ( self ) -> Box < T , A > {
@@ -1641,6 +1645,8 @@ impl<A: Allocator> Box<dyn Any + Send + Sync, A> {
1641
1645
///
1642
1646
/// The contained value must be of type `T`. Calling this method
1643
1647
/// with the incorrect type is *undefined behavior*.
1648
+ ///
1649
+ /// [`downcast`]: Self::downcast
1644
1650
#[ inline]
1645
1651
#[ unstable( feature = "downcast_unchecked" , issue = "90850" ) ]
1646
1652
pub unsafe fn downcast_unchecked < T : Any > ( self ) -> Box < T , A > {
Original file line number Diff line number Diff line change @@ -265,8 +265,6 @@ impl dyn Any {
265
265
266
266
/// Returns a reference to the inner value as type `dyn T`.
267
267
///
268
- /// For a safe alternative see [`downcast_ref`].
269
- ///
270
268
/// # Examples
271
269
///
272
270
/// ```
@@ -295,8 +293,6 @@ impl dyn Any {
295
293
296
294
/// Returns a mutable reference to the inner value as type `dyn T`.
297
295
///
298
- /// For a safe alternative see [`downcast_mut`].
299
- ///
300
296
/// # Examples
301
297
///
302
298
/// ```
You can’t perform that action at this time.
0 commit comments