From 4caffa8526b2d359aff853964b08aebb9683bcdb Mon Sep 17 00:00:00 2001 From: Aaron Turon Date: Fri, 14 Nov 2014 20:39:41 -0800 Subject: libs: fix #[stable] inheritance fallout A recent change turned off inheritance for the #[stable] by default, but failed to catch all the cases where this was being used in std. This patch fixes that problem. --- src/liballoc/rc.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/liballoc') diff --git a/src/liballoc/rc.rs b/src/liballoc/rc.rs index 049bf4eb1b0..501f915461a 100644 --- a/src/liballoc/rc.rs +++ b/src/liballoc/rc.rs @@ -179,9 +179,9 @@ pub struct Rc { _noshare: marker::NoSync } -#[stable] impl Rc { /// Constructs a new reference-counted pointer. + #[stable] pub fn new(value: T) -> Rc { unsafe { Rc { @@ -200,9 +200,7 @@ impl Rc { } } } -} -impl Rc { /// Downgrades the reference-counted pointer to a weak reference. #[experimental = "Weak pointers may not belong in this module"] pub fn downgrade(&self) -> Weak { -- cgit 1.4.1-3-g733a5