]> git.lizzy.rs Git - rust.git/commitdiff
remove bitrotted cant_nest field from RWARC (the #[mutable] tag suffices)
authorBen Blum <bblum@andrew.cmu.edu>
Tue, 11 Jun 2013 00:32:07 +0000 (20:32 -0400)
committerBen Blum <bblum@andrew.cmu.edu>
Thu, 13 Jun 2013 00:53:40 +0000 (20:53 -0400)
src/libextra/arc.rs

index 1b6b656e398a46997c300b18fccacaf19ac4cbdc..2d9068be6cf0322495202ba029245b75f4470153 100644 (file)
@@ -281,7 +281,6 @@ struct RWARCInner<T> { lock: RWlock, failed: bool, data: T }
 #[mutable]
 struct RWARC<T> {
     x: UnsafeAtomicRcBox<RWARCInner<T>>,
-    cant_nest: ()
 }
 
 /// Create a reader/writer ARC with the supplied data.
@@ -299,7 +298,7 @@ pub fn rw_arc_with_condvars<T:Const + Owned>(
     let data =
         RWARCInner { lock: rwlock_with_condvars(num_condvars),
                      failed: false, data: user_data };
-    RWARC { x: UnsafeAtomicRcBox::new(data), cant_nest: () }
+    RWARC { x: UnsafeAtomicRcBox::new(data), }
 }
 
 impl<T:Const + Owned> RWARC<T> {
@@ -307,7 +306,6 @@ impl<T:Const + Owned> RWARC<T> {
     pub fn clone(&self) -> RWARC<T> {
         RWARC {
             x: self.x.clone(),
-            cant_nest: (),
         }
     }