about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-11-16 11:27:35 +0000
committerbors <bors@rust-lang.org>2014-11-16 11:27:35 +0000
commit0c7a3d6c167c4656e8d35a1d428d142993e0aaab (patch)
treebf70393828be01b5042bdc76031d0a9ec7cb4900 /src/liballoc
parentcb51567e1911452f3da4b924a91e5360f5efe67c (diff)
parent892d4e28f4021ffa815649ec3a52f22f929b3708 (diff)
downloadrust-0c7a3d6c167c4656e8d35a1d428d142993e0aaab.tar.gz
rust-0c7a3d6c167c4656e8d35a1d428d142993e0aaab.zip
auto merge of #18978 : jakub-/rust/roll-up, r=cmr
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> {