We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d753ad4 + 265b33c commit cf23ccfCopy full SHA for cf23ccf
src/libstd/arc.rs
@@ -114,7 +114,7 @@ pub fn clone<T: Const Owned>(rc: &ARC<T>) -> ARC<T> {
114
* unwrap from a task that holds another reference to the same ARC; it is
115
* guaranteed to deadlock.
116
*/
117
-fn unwrap<T: Const Owned>(rc: ARC<T>) -> T {
+pub fn unwrap<T: Const Owned>(rc: ARC<T>) -> T {
118
let ARC { x: x } = move rc;
119
unsafe { unwrap_shared_mutable_state(move x) }
120
}
0 commit comments