Skip to content

Commit cf23ccf

Browse files
committed
Merge pull request #4642 from codeblack08/unwrap-pub
Declare std::arc::unwrap to be pub
2 parents d753ad4 + 265b33c commit cf23ccf

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)