File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -481,7 +481,7 @@ impl<T: ?Sized> Box<T> {
481481 #[ unstable(
482482 feature = "ptr_internals" ,
483483 issue = "none" ,
484- reason = "use `Box::leak(b).into()` or `NonNull ::from(Box::leak(b))` instead"
484+ reason = "use `Box::leak(b).into()` or `Unique ::from(Box::leak(b))` instead"
485485 ) ]
486486 #[ inline]
487487 #[ doc( hidden) ]
Original file line number Diff line number Diff line change @@ -645,7 +645,7 @@ impl<T: ?Sized> Arc<T> {
645645 /// assert_eq!(deref, "hello");
646646 /// ```
647647 #[ unstable( feature = "rc_into_raw_non_null" , issue = "47336" ) ]
648- #[ rustc_deprecated( since = "1.44.0" , reason = "use `Rc ::into_raw` instead" ) ]
648+ #[ rustc_deprecated( since = "1.44.0" , reason = "use `Arc ::into_raw` instead" ) ]
649649 #[ inline]
650650 pub fn into_raw_non_null ( this : Self ) -> NonNull < T > {
651651 // safe because Arc guarantees its pointer is non-null
You can’t perform that action at this time.
0 commit comments