/// The contained value must be of type `T`. Calling this method
/// with the incorrect type is *undefined behavior*.
#[inline]
- #[unstable(feature = "downcast_unchecked", issue = "none")]
+ #[unstable(feature = "downcast_unchecked", issue = "90850")]
pub unsafe fn downcast_unchecked<T: Any>(self) -> Box<T, A> {
debug_assert!(self.is::<T>());
unsafe {
/// The contained value must be of type `T`. Calling this method
/// with the incorrect type is *undefined behavior*.
#[inline]
- #[unstable(feature = "downcast_unchecked", issue = "none")]
+ #[unstable(feature = "downcast_unchecked", issue = "90850")]
pub unsafe fn downcast_unchecked<T: Any>(self) -> Box<T, A> {
debug_assert!(self.is::<T>());
unsafe {
/// The contained value must be of type `T`. Calling this method
/// with the incorrect type is *undefined behavior*.
#[inline]
- #[unstable(feature = "downcast_unchecked", issue = "none")]
+ #[unstable(feature = "downcast_unchecked", issue = "90850")]
pub unsafe fn downcast_unchecked<T: Any>(self) -> Box<T, A> {
debug_assert!(self.is::<T>());
unsafe {
///
/// The contained value must be of type `T`. Calling this method
/// with the incorrect type is *undefined behavior*.
- #[unstable(feature = "downcast_unchecked", issue = "none")]
+ #[unstable(feature = "downcast_unchecked", issue = "90850")]
#[inline]
pub unsafe fn downcast_ref_unchecked<T: Any>(&self) -> &T {
debug_assert!(self.is::<T>());
///
/// The contained value must be of type `T`. Calling this method
/// with the incorrect type is *undefined behavior*.
- #[unstable(feature = "downcast_unchecked", issue = "none")]
+ #[unstable(feature = "downcast_unchecked", issue = "90850")]
#[inline]
pub unsafe fn downcast_mut_unchecked<T: Any>(&mut self) -> &mut T {
debug_assert!(self.is::<T>());
/// # Safety
///
/// Same as the method on the type `dyn Any`.
- #[unstable(feature = "downcast_unchecked", issue = "none")]
+ #[unstable(feature = "downcast_unchecked", issue = "90850")]
#[inline]
pub unsafe fn downcast_ref_unchecked<T: Any>(&self) -> &T {
// SAFETY: guaranteed by caller
/// # Safety
///
/// Same as the method on the type `dyn Any`.
- #[unstable(feature = "downcast_unchecked", issue = "none")]
+ #[unstable(feature = "downcast_unchecked", issue = "90850")]
#[inline]
pub unsafe fn downcast_mut_unchecked<T: Any>(&mut self) -> &mut T {
// SAFETY: guaranteed by caller
/// assert_eq!(*x.downcast_ref_unchecked::<usize>(), 1);
/// }
/// ```
- #[unstable(feature = "downcast_unchecked", issue = "none")]
+ #[unstable(feature = "downcast_unchecked", issue = "90850")]
#[inline]
pub unsafe fn downcast_ref_unchecked<T: Any>(&self) -> &T {
// SAFETY: guaranteed by caller
///
/// assert_eq!(*x.downcast_ref::<usize>().unwrap(), 2);
/// ```
- #[unstable(feature = "downcast_unchecked", issue = "none")]
+ #[unstable(feature = "downcast_unchecked", issue = "90850")]
#[inline]
pub unsafe fn downcast_mut_unchecked<T: Any>(&mut self) -> &mut T {
// SAFETY: guaranteed by caller