Co-Authored-By: Ralf Jung <post@ralfj.de>
#[unstable(
feature = "ptr_internals",
issue = "none",
- reason = "use `Box::leak(b).into()` or `NonNull::from(Box::leak(b))` instead"
+ reason = "use `Box::leak(b).into()` or `Unique::from(Box::leak(b))` instead"
)]
#[inline]
#[doc(hidden)]
/// assert_eq!(deref, "hello");
/// ```
#[unstable(feature = "rc_into_raw_non_null", issue = "47336")]
- #[rustc_deprecated(since = "1.44.0", reason = "use `Rc::into_raw` instead")]
+ #[rustc_deprecated(since = "1.44.0", reason = "use `Arc::into_raw` instead")]
#[inline]
pub fn into_raw_non_null(this: Self) -> NonNull<T> {
// safe because Arc guarantees its pointer is non-null