Skip to content

Commit 668c57a

Browse files
committed
add issue number for #![feature(rc_as_weak)]
1 parent be2d57c commit 668c57a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/alloc/src/rc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,7 @@ impl<T: ?Sized> Rc<T> {
950950
/// let weak_five: &Weak<i32> = Rc::as_weak(five);
951951
/// ```
952952
#[inline]
953-
#[unstable(feature = "rc_as_weak", issue = "none")]
953+
#[unstable(feature = "rc_as_weak", issue = "100472")]
954954
#[must_use]
955955
pub const fn as_weak<'a>(this: &'a Self) -> &'a Weak<T> {
956956
unsafe { mem::transmute::<&'a Rc<T>, &'a Weak<T>>(this) }

library/alloc/src/sync.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,7 @@ impl<T: ?Sized> Arc<T> {
977977
/// let weak_five: &Weak<i32> = Arc::as_weak(five);
978978
/// ```
979979
#[inline]
980-
#[unstable(feature = "rc_as_weak", issue = "none")]
980+
#[unstable(feature = "rc_as_weak", issue = "100472")]
981981
#[must_use]
982982
pub const fn as_weak<'a>(this: &'a Self) -> &'a Weak<T> {
983983
unsafe { mem::transmute::<&'a Arc<T>, &'a Weak<T>>(this) }

0 commit comments

Comments
 (0)