From 265b33c239996930627c21400416328dcce46239 Mon Sep 17 00:00:00 2001 From: Cody Schroeder Date: Fri, 25 Jan 2013 17:25:41 -0800 Subject: [PATCH] Declare std::arc::unwrap to be pub --- src/libstd/arc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstd/arc.rs b/src/libstd/arc.rs index 536f43d648c..0c40fe283af 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) } }