Commit b359fe1 1 parent cdb6bef commit b359fe1 Copy full SHA for b359fe1
File tree 2 files changed +4
-0
lines changed
2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -636,6 +636,7 @@ impl<T: ?Sized> Rc<T> {
636
636
///
637
637
/// ```
638
638
/// #![feature(rc_into_raw_non_null)]
639
+ /// #![allow(deprecated)]
639
640
///
640
641
/// use std::rc::Rc;
641
642
///
@@ -645,6 +646,7 @@ impl<T: ?Sized> Rc<T> {
645
646
/// assert_eq!(deref, "hello");
646
647
/// ```
647
648
#[ unstable( feature = "rc_into_raw_non_null" , issue = "47336" ) ]
649
+ #[ rustc_deprecated( since = "1.44.0" , reason = "use `Rc::into_raw` instead" ) ]
648
650
#[ inline]
649
651
pub fn into_raw_non_null ( this : Self ) -> NonNull < T > {
650
652
// safe because Rc guarantees its pointer is non-null
Original file line number Diff line number Diff line change @@ -635,6 +635,7 @@ impl<T: ?Sized> Arc<T> {
635
635
///
636
636
/// ```
637
637
/// #![feature(rc_into_raw_non_null)]
638
+ /// #![allow(deprecated)]
638
639
///
639
640
/// use std::sync::Arc;
640
641
///
@@ -644,6 +645,7 @@ impl<T: ?Sized> Arc<T> {
644
645
/// assert_eq!(deref, "hello");
645
646
/// ```
646
647
#[ unstable( feature = "rc_into_raw_non_null" , issue = "47336" ) ]
648
+ #[ rustc_deprecated( since = "1.44.0" , reason = "use `Rc::into_raw` instead" ) ]
647
649
#[ inline]
648
650
pub fn into_raw_non_null ( this : Self ) -> NonNull < T > {
649
651
// safe because Arc guarantees its pointer is non-null
You can’t perform that action at this time.
0 commit comments