Skip to content

Commit 6f98293

Browse files
committed
add tracking issue for downcast_unchecked
1 parent 29403ee commit 6f98293

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

library/alloc/src/boxed.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1528,7 +1528,7 @@ impl<A: Allocator> Box<dyn Any, A> {
15281528
/// The contained value must be of type `T`. Calling this method
15291529
/// with the incorrect type is *undefined behavior*.
15301530
#[inline]
1531-
#[unstable(feature = "downcast_unchecked", issue = "none")]
1531+
#[unstable(feature = "downcast_unchecked", issue = "90850")]
15321532
pub unsafe fn downcast_unchecked<T: Any>(self) -> Box<T, A> {
15331533
debug_assert!(self.is::<T>());
15341534
unsafe {
@@ -1585,7 +1585,7 @@ impl<A: Allocator> Box<dyn Any + Send, A> {
15851585
/// The contained value must be of type `T`. Calling this method
15861586
/// with the incorrect type is *undefined behavior*.
15871587
#[inline]
1588-
#[unstable(feature = "downcast_unchecked", issue = "none")]
1588+
#[unstable(feature = "downcast_unchecked", issue = "90850")]
15891589
pub unsafe fn downcast_unchecked<T: Any>(self) -> Box<T, A> {
15901590
debug_assert!(self.is::<T>());
15911591
unsafe {
@@ -1642,7 +1642,7 @@ impl<A: Allocator> Box<dyn Any + Send + Sync, A> {
16421642
/// The contained value must be of type `T`. Calling this method
16431643
/// with the incorrect type is *undefined behavior*.
16441644
#[inline]
1645-
#[unstable(feature = "downcast_unchecked", issue = "none")]
1645+
#[unstable(feature = "downcast_unchecked", issue = "90850")]
16461646
pub unsafe fn downcast_unchecked<T: Any>(self) -> Box<T, A> {
16471647
debug_assert!(self.is::<T>());
16481648
unsafe {

library/core/src/any.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ impl dyn Any {
285285
///
286286
/// The contained value must be of type `T`. Calling this method
287287
/// with the incorrect type is *undefined behavior*.
288-
#[unstable(feature = "downcast_unchecked", issue = "none")]
288+
#[unstable(feature = "downcast_unchecked", issue = "90850")]
289289
#[inline]
290290
pub unsafe fn downcast_ref_unchecked<T: Any>(&self) -> &T {
291291
debug_assert!(self.is::<T>());
@@ -317,7 +317,7 @@ impl dyn Any {
317317
///
318318
/// The contained value must be of type `T`. Calling this method
319319
/// with the incorrect type is *undefined behavior*.
320-
#[unstable(feature = "downcast_unchecked", issue = "none")]
320+
#[unstable(feature = "downcast_unchecked", issue = "90850")]
321321
#[inline]
322322
pub unsafe fn downcast_mut_unchecked<T: Any>(&mut self) -> &mut T {
323323
debug_assert!(self.is::<T>());
@@ -422,7 +422,7 @@ impl dyn Any + Send {
422422
/// # Safety
423423
///
424424
/// Same as the method on the type `dyn Any`.
425-
#[unstable(feature = "downcast_unchecked", issue = "none")]
425+
#[unstable(feature = "downcast_unchecked", issue = "90850")]
426426
#[inline]
427427
pub unsafe fn downcast_ref_unchecked<T: Any>(&self) -> &T {
428428
// SAFETY: guaranteed by caller
@@ -450,7 +450,7 @@ impl dyn Any + Send {
450450
/// # Safety
451451
///
452452
/// Same as the method on the type `dyn Any`.
453-
#[unstable(feature = "downcast_unchecked", issue = "none")]
453+
#[unstable(feature = "downcast_unchecked", issue = "90850")]
454454
#[inline]
455455
pub unsafe fn downcast_mut_unchecked<T: Any>(&mut self) -> &mut T {
456456
// SAFETY: guaranteed by caller
@@ -550,7 +550,7 @@ impl dyn Any + Send + Sync {
550550
/// assert_eq!(*x.downcast_ref_unchecked::<usize>(), 1);
551551
/// }
552552
/// ```
553-
#[unstable(feature = "downcast_unchecked", issue = "none")]
553+
#[unstable(feature = "downcast_unchecked", issue = "90850")]
554554
#[inline]
555555
pub unsafe fn downcast_ref_unchecked<T: Any>(&self) -> &T {
556556
// SAFETY: guaranteed by caller
@@ -574,7 +574,7 @@ impl dyn Any + Send + Sync {
574574
///
575575
/// assert_eq!(*x.downcast_ref::<usize>().unwrap(), 2);
576576
/// ```
577-
#[unstable(feature = "downcast_unchecked", issue = "none")]
577+
#[unstable(feature = "downcast_unchecked", issue = "90850")]
578578
#[inline]
579579
pub unsafe fn downcast_mut_unchecked<T: Any>(&mut self) -> &mut T {
580580
// SAFETY: guaranteed by caller

0 commit comments

Comments
 (0)