Skip to content

Commit 265b33c

Browse files
committed
Declare std::arc::unwrap to be pub
1 parent d753ad4 commit 265b33c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/arc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ pub fn clone<T: Const Owned>(rc: &ARC<T>) -> ARC<T> {
114114
* unwrap from a task that holds another reference to the same ARC; it is
115115
* guaranteed to deadlock.
116116
*/
117-
fn unwrap<T: Const Owned>(rc: ARC<T>) -> T {
117+
pub fn unwrap<T: Const Owned>(rc: ARC<T>) -> T {
118118
let ARC { x: x } = move rc;
119119
unsafe { unwrap_shared_mutable_state(move x) }
120120
}

0 commit comments

Comments
 (0)