diff options
| author | Ben Blum <bblum@andrew.cmu.edu> | 2012-08-20 21:59:47 -0400 |
|---|---|---|
| committer | Ben Blum <bblum@andrew.cmu.edu> | 2012-08-20 22:00:06 -0400 |
| commit | bd736a0f9b8f8be46c256f1de04cd1e3798762c9 (patch) | |
| tree | 9b03135c7d32690f043dc11beac5c53a24e8b7b4 /src/libstd | |
| parent | 1aa50bba7c11b8d3e2e66bd55913214fcb05a3cc (diff) | |
| download | rust-bd736a0f9b8f8be46c256f1de04cd1e3798762c9.tar.gz rust-bd736a0f9b8f8be46c256f1de04cd1e3798762c9.zip | |
oops, remove #[cfg(stage1)]s from arc::unwrap functions+tests
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/arc.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/libstd/arc.rs b/src/libstd/arc.rs index 86347c7d3a6..531140c7e48 100644 --- a/src/libstd/arc.rs +++ b/src/libstd/arc.rs @@ -93,7 +93,6 @@ fn clone<T: const send>(rc: &arc<T>) -> arc<T> { arc { x: unsafe { clone_shared_mutable_state(&rc.x) } } } -#[cfg(stage1)] fn unwrap<T: const send>(+rc: arc<T>) -> T { let arc { x: x } = rc; unsafe { unwrap_shared_mutable_state(x) } @@ -188,7 +187,6 @@ impl<T: send> &mutex_arc<T> { } // FIXME(#2585) make this a by-move method on the arc -#[cfg(stage1)] fn unwrap_mutex_arc<T: send>(+arc: mutex_arc<T>) -> T { let mutex_arc { x: x } = arc; let inner = unsafe { unwrap_shared_mutable_state(x) }; @@ -366,7 +364,6 @@ impl<T: const send> &rw_arc<T> { } // FIXME(#2585) make this a by-move method on the arc -#[cfg(stage1)] fn unwrap_rw_arc<T: const send>(+arc: rw_arc<T>) -> T { let rw_arc { x: x, _ } = arc; let inner = unsafe { unwrap_shared_mutable_state(x) }; @@ -527,7 +524,6 @@ mod tests { } } #[test] #[should_fail] #[ignore(cfg(windows))] - #[cfg(stage1)] fn test_mutex_arc_unwrap_poison() { let arc = mutex_arc(1); let arc2 = ~(&arc).clone(); |
