Declare std::arc::unwrap to be pub

This commit is contained in:
Cody Schroeder 2013-01-25 17:25:41 -08:00
parent d753ad4ee4
commit 265b33c239

View File

@ -114,7 +114,7 @@ pub fn clone<T: Const Owned>(rc: &ARC<T>) -> ARC<T> {
* unwrap from a task that holds another reference to the same ARC; it is
* guaranteed to deadlock.
*/
fn unwrap<T: Const Owned>(rc: ARC<T>) -> T {
pub fn unwrap<T: Const Owned>(rc: ARC<T>) -> T {
let ARC { x: x } = move rc;
unsafe { unwrap_shared_mutable_state(move x) }
}