about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorJakub Bukaj <jakub@jakub.cc>2014-11-16 10:21:33 +0100
committerJakub Bukaj <jakub@jakub.cc>2014-11-16 10:21:33 +0100
commit42c77f4958fcd6c2238d883c49f52341e0631999 (patch)
tree8d2185033dcafbae16ef5b0ebeed90cb41679695 /src/liballoc
parentf3fd09a6f57bb9b634a38e672bcd51ef0922dbe1 (diff)
parent60741e0fa0948c75040d0d554b46027021185600 (diff)
downloadrust-42c77f4958fcd6c2238d883c49f52341e0631999.tar.gz
rust-42c77f4958fcd6c2238d883c49f52341e0631999.zip
rollup merge of #18970: aturon/fixup-stable
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/rc.rs4
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> {