diff options
| author | Aaron Turon <aturon@mozilla.com> | 2014-11-14 20:39:41 -0800 |
|---|---|---|
| committer | Aaron Turon <aturon@mozilla.com> | 2014-11-14 20:39:41 -0800 |
| commit | 4caffa8526b2d359aff853964b08aebb9683bcdb (patch) | |
| tree | 83d5bd1ff349ad16014843ee9fa4172ce52f3858 /src/liballoc | |
| parent | 1bf06495443584539b958873e04cc2f864ab10e4 (diff) | |
| download | rust-4caffa8526b2d359aff853964b08aebb9683bcdb.tar.gz rust-4caffa8526b2d359aff853964b08aebb9683bcdb.zip | |
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.
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/rc.rs | 4 |
1 files changed, 1 insertions, 3 deletions
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<T> { _noshare: marker::NoSync } -#[stable] impl<T> Rc<T> { /// Constructs a new reference-counted pointer. + #[stable] pub fn new(value: T) -> Rc<T> { unsafe { Rc { @@ -200,9 +200,7 @@ impl<T> Rc<T> { } } } -} -impl<T> Rc<T> { /// Downgrades the reference-counted pointer to a weak reference. #[experimental = "Weak pointers may not belong in this module"] pub fn downgrade(&self) -> Weak<T> { |
