1
Fork 0

arc: mark RWARC as non-Const

This commit is contained in:
Daniel Micay 2013-05-07 13:00:00 -04:00
parent 43165b54e0
commit 96eb1e50a4

View file

@ -252,6 +252,7 @@ struct RWARCInner<T> { lock: RWlock, failed: bool, data: T }
* *
* Unlike mutex_arcs, rw_arcs are safe, because they cannot be nested. * Unlike mutex_arcs, rw_arcs are safe, because they cannot be nested.
*/ */
#[mutable]
struct RWARC<T> { struct RWARC<T> {
x: SharedMutableState<RWARCInner<T>>, x: SharedMutableState<RWARCInner<T>>,
cant_nest: () cant_nest: ()