Merge pull request #4642 from codeblack08/unwrap-pub

Declare std::arc::unwrap to be pub
This commit is contained in:
Tim Chevalier 2013-01-25 18:04:17 -08:00
commit cf23ccf9b6

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) }
}