diff --git a/src/libstd/arc.rs b/src/libstd/arc.rs index 536f43d648c4..0c40fe283af0 100644 --- a/src/libstd/arc.rs +++ b/src/libstd/arc.rs @@ -114,7 +114,7 @@ pub fn clone(rc: &ARC) -> ARC { * unwrap from a task that holds another reference to the same ARC; it is * guaranteed to deadlock. */ -fn unwrap(rc: ARC) -> T { +pub fn unwrap(rc: ARC) -> T { let ARC { x: x } = move rc; unsafe { unwrap_shared_mutable_state(move x) } }