@@ -238,7 +238,7 @@ impl<T> Rc<T> {
238238 /// assert_eq!(Rc::try_unwrap(x), Err(Rc::new(4)));
239239 /// ```
240240 #[ inline]
241- #[ unstable( feature = "rc_unique" ) ]
241+ #[ unstable( feature = "rc_unique" , issue = "27718" ) ]
242242 pub fn try_unwrap ( rc : Rc < T > ) -> Result < T , Rc < T > > {
243243 if Rc :: is_unique ( & rc) {
244244 unsafe {
@@ -271,20 +271,21 @@ impl<T: ?Sized> Rc<T> {
271271 /// let weak_five = five.downgrade();
272272 /// ```
273273 #[ unstable( feature = "rc_weak" ,
274- reason = "Weak pointers may not belong in this module" ) ]
274+ reason = "Weak pointers may not belong in this module" ,
275+ issue = "27718" ) ]
275276 pub fn downgrade ( & self ) -> Weak < T > {
276277 self . inc_weak ( ) ;
277278 Weak { _ptr : self . _ptr }
278279 }
279280
280281 /// Get the number of weak references to this value.
281282 #[ inline]
282- #[ unstable( feature = "rc_counts" ) ]
283+ #[ unstable( feature = "rc_counts" , issue = "27718" ) ]
283284 pub fn weak_count ( this : & Rc < T > ) -> usize { this. weak ( ) - 1 }
284285
285286 /// Get the number of strong references to this value.
286287 #[ inline]
287- #[ unstable( feature = "rc_counts" ) ]
288+ #[ unstable( feature = "rc_counts" , issue= "27718" ) ]
288289 pub fn strong_count ( this : & Rc < T > ) -> usize { this. strong ( ) }
289290
290291 /// Returns true if there are no other `Rc` or `Weak<T>` values that share
@@ -302,7 +303,7 @@ impl<T: ?Sized> Rc<T> {
302303 /// assert!(Rc::is_unique(&five));
303304 /// ```
304305 #[ inline]
305- #[ unstable( feature = "rc_unique" ) ]
306+ #[ unstable( feature = "rc_unique" , issue = "27718" ) ]
306307 pub fn is_unique ( rc : & Rc < T > ) -> bool {
307308 Rc :: weak_count ( rc) == 0 && Rc :: strong_count ( rc) == 1
308309 }
@@ -327,7 +328,7 @@ impl<T: ?Sized> Rc<T> {
327328 /// assert!(Rc::get_mut(&mut x).is_none());
328329 /// ```
329330 #[ inline]
330- #[ unstable( feature = "rc_unique" ) ]
331+ #[ unstable( feature = "rc_unique" , issue = "27718" ) ]
331332 pub fn get_mut ( rc : & mut Rc < T > ) -> Option < & mut T > {
332333 if Rc :: is_unique ( rc) {
333334 let inner = unsafe { & mut * * rc. _ptr } ;
@@ -356,7 +357,7 @@ impl<T: Clone> Rc<T> {
356357 /// let mut_five = five.make_unique();
357358 /// ```
358359 #[ inline]
359- #[ unstable( feature = "rc_unique" ) ]
360+ #[ unstable( feature = "rc_unique" , issue = "27718" ) ]
360361 pub fn make_unique ( & mut self ) -> & mut T {
361362 if !Rc :: is_unique ( self ) {
362363 * self = Rc :: new ( ( * * self ) . clone ( ) )
@@ -653,7 +654,8 @@ impl<T> fmt::Pointer for Rc<T> {
653654/// See the [module level documentation](./index.html) for more.
654655#[ unsafe_no_drop_flag]
655656#[ unstable( feature = "rc_weak" ,
656- reason = "Weak pointers may not belong in this module." ) ]
657+ reason = "Weak pointers may not belong in this module." ,
658+ issue = "27718" ) ]
657659pub struct Weak < T : ?Sized > {
658660 // FIXME #12808: strange names to try to avoid interfering with
659661 // field accesses of the contained type via Deref
@@ -666,7 +668,8 @@ impl<T: ?Sized> !marker::Sync for Weak<T> {}
666668impl < T : ?Sized +Unsize < U > , U : ?Sized > CoerceUnsized < Weak < U > > for Weak < T > { }
667669
668670#[ unstable( feature = "rc_weak" ,
669- reason = "Weak pointers may not belong in this module." ) ]
671+ reason = "Weak pointers may not belong in this module." ,
672+ issue = "27718" ) ]
670673impl < T : ?Sized > Weak < T > {
671674
672675 /// Upgrades a weak reference to a strong reference.
@@ -746,7 +749,8 @@ impl<T: ?Sized> Drop for Weak<T> {
746749}
747750
748751#[ unstable( feature = "rc_weak" ,
749- reason = "Weak pointers may not belong in this module." ) ]
752+ reason = "Weak pointers may not belong in this module." ,
753+ issue = "27718" ) ]
750754impl < T : ?Sized > Clone for Weak < T > {
751755
752756 /// Makes a clone of the `Weak<T>`.
0 commit comments