Skip to content

Commit 96eb1e5

Browse files
committed
arc: mark RWARC as non-Const
1 parent 43165b5 commit 96eb1e5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libstd/arc.rs

+1
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ struct RWARCInner<T> { lock: RWlock, failed: bool, data: T }
252252
*
253253
* Unlike mutex_arcs, rw_arcs are safe, because they cannot be nested.
254254
*/
255+
#[mutable]
255256
struct RWARC<T> {
256257
x: SharedMutableState<RWARCInner<T>>,
257258
cant_nest: ()

0 commit comments

Comments
 (0)