Skip to content

Commit 9a1c7db

Browse files
SimonSapinRalfJung
andauthored
Apply suggestions from code review
Co-Authored-By: Ralf Jung <[email protected]>
1 parent b359fe1 commit 9a1c7db

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/liballoc/boxed.rs

+1-1
Original file line numberDiff line numberDiff 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)]

src/liballoc/sync.rs

+1-1
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)