Skip to content

Commit d809f54

Browse files
committed
remove bitrotted cant_nest field from RWARC (the #[mutable] tag suffices)
1 parent 6b22c09 commit d809f54

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/libextra/arc.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,6 @@ struct RWARCInner<T> { lock: RWlock, failed: bool, data: T }
281281
#[mutable]
282282
struct RWARC<T> {
283283
x: UnsafeAtomicRcBox<RWARCInner<T>>,
284-
cant_nest: ()
285284
}
286285

287286
/// Create a reader/writer ARC with the supplied data.
@@ -299,15 +298,14 @@ pub fn rw_arc_with_condvars<T:Const + Owned>(
299298
let data =
300299
RWARCInner { lock: rwlock_with_condvars(num_condvars),
301300
failed: false, data: user_data };
302-
RWARC { x: UnsafeAtomicRcBox::new(data), cant_nest: () }
301+
RWARC { x: UnsafeAtomicRcBox::new(data), }
303302
}
304303

305304
impl<T:Const + Owned> RWARC<T> {
306305
/// Duplicate a rwlock-protected ARC, as arc::clone.
307306
pub fn clone(&self) -> RWARC<T> {
308307
RWARC {
309308
x: self.x.clone(),
310-
cant_nest: (),
311309
}
312310
}
313311

0 commit comments

Comments
 (0)