diff options
| author | bors <bors@rust-lang.org> | 2013-07-27 22:31:22 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-07-27 22:31:22 -0700 |
| commit | 9325535b41fa5a7cfac697e86ae86bd1384542e6 (patch) | |
| tree | f28193aa80d78d16efd25cf319fbd8b604125173 /src/test/run-pass | |
| parent | 3078e83c3f1a643ddbdefa78095e4fbda3cecc02 (diff) | |
| parent | 39b3a0561f06b1ea01a12d8fc3372334116a7833 (diff) | |
auto merge of #7978 : sstewartgallus/rust/rename_arc, r=bblum
To be more specific: `UPPERCASETYPE` was changed to `UppercaseType` `type_new` was changed to `Type::new` `type_function(value)` was changed to `value.method()`
Diffstat (limited to 'src/test/run-pass')
| -rw-r--r-- | src/test/run-pass/bind-by-move.rs | 4 | ||||
| -rw-r--r-- | src/test/run-pass/match-ref-binding-in-guard-3256.rs | 2 | ||||
| -rw-r--r-- | src/test/run-pass/once-move-out-on-heap.rs | 2 | ||||
| -rw-r--r-- | src/test/run-pass/once-move-out-on-stack.rs | 2 | ||||
| -rw-r--r-- | src/test/run-pass/trait-bounds-in-arc.rs | 10 | ||||
| -rw-r--r-- | src/test/run-pass/writealias.rs | 2 |
6 files changed, 11 insertions, 11 deletions
diff --git a/src/test/run-pass/bind-by-move.rs b/src/test/run-pass/bind-by-move.rs index 5cde389ff75..9d808d19af2 100644 --- a/src/test/run-pass/bind-by-move.rs +++ b/src/test/run-pass/bind-by-move.rs @@ -11,10 +11,10 @@ // xfail-fast extern mod extra; use extra::arc; -fn dispose(_x: arc::ARC<bool>) { unsafe { } } +fn dispose(_x: arc::Arc<bool>) { unsafe { } } pub fn main() { - let p = arc::ARC(true); + let p = arc::Arc::new(true); let x = Some(p); match x { Some(z) => { dispose(z); }, diff --git a/src/test/run-pass/match-ref-binding-in-guard-3256.rs b/src/test/run-pass/match-ref-binding-in-guard-3256.rs index a199a75de56..e1d2f0e1c48 100644 --- a/src/test/run-pass/match-ref-binding-in-guard-3256.rs +++ b/src/test/run-pass/match-ref-binding-in-guard-3256.rs @@ -12,7 +12,7 @@ use std::unstable; pub fn main() { unsafe { - let x = Some(unstable::sync::exclusive(true)); + let x = Some(unstable::sync::Exclusive::new(true)); match x { Some(ref z) if z.with(|b| *b) => { do z.with |b| { assert!(*b); } diff --git a/src/test/run-pass/once-move-out-on-heap.rs b/src/test/run-pass/once-move-out-on-heap.rs index 38b23fd128d..744cd1066cf 100644 --- a/src/test/run-pass/once-move-out-on-heap.rs +++ b/src/test/run-pass/once-move-out-on-heap.rs @@ -21,7 +21,7 @@ fn foo(blk: ~once fn()) { } fn main() { - let x = arc::ARC(true); + let x = arc::Arc::new(true); do foo { assert!(*x.get()); util::ignore(x); diff --git a/src/test/run-pass/once-move-out-on-stack.rs b/src/test/run-pass/once-move-out-on-stack.rs index e881f576673..002503a5566 100644 --- a/src/test/run-pass/once-move-out-on-stack.rs +++ b/src/test/run-pass/once-move-out-on-stack.rs @@ -22,7 +22,7 @@ fn foo(blk: &once fn()) { } fn main() { - let x = arc::ARC(true); + let x = arc::Arc::new(true); do foo { assert!(*x.get()); util::ignore(x); diff --git a/src/test/run-pass/trait-bounds-in-arc.rs b/src/test/run-pass/trait-bounds-in-arc.rs index a3b2ea02db3..0677b63b5aa 100644 --- a/src/test/run-pass/trait-bounds-in-arc.rs +++ b/src/test/run-pass/trait-bounds-in-arc.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// Tests that a heterogeneous list of existential types can be put inside an ARC +// Tests that a heterogeneous list of existential types can be put inside an Arc // and shared between tasks as long as all types fulfill Freeze+Send. // xfail-fast @@ -64,7 +64,7 @@ fn main() { let dogge1 = Dogge { bark_decibels: 100, tricks_known: 42, name: ~"alan_turing" }; let dogge2 = Dogge { bark_decibels: 55, tricks_known: 11, name: ~"albert_einstein" }; let fishe = Goldfyshe { swim_speed: 998, name: ~"alec_guinness" }; - let arc = arc::ARC(~[~catte as ~Pet:Freeze+Send, + let arc = arc::Arc::new(~[~catte as ~Pet:Freeze+Send, ~dogge1 as ~Pet:Freeze+Send, ~fishe as ~Pet:Freeze+Send, ~dogge2 as ~Pet:Freeze+Send]); @@ -82,21 +82,21 @@ fn main() { p3.recv(); } -fn check_legs(arc: arc::ARC<~[~Pet:Freeze+Send]>) { +fn check_legs(arc: arc::Arc<~[~Pet:Freeze+Send]>) { let mut legs = 0; for arc.get().iter().advance |pet| { legs += pet.num_legs(); } assert!(legs == 12); } -fn check_names(arc: arc::ARC<~[~Pet:Freeze+Send]>) { +fn check_names(arc: arc::Arc<~[~Pet:Freeze+Send]>) { for arc.get().iter().advance |pet| { do pet.name |name| { assert!(name[0] == 'a' as u8 && name[1] == 'l' as u8); } } } -fn check_pedigree(arc: arc::ARC<~[~Pet:Freeze+Send]>) { +fn check_pedigree(arc: arc::Arc<~[~Pet:Freeze+Send]>) { for arc.get().iter().advance |pet| { assert!(pet.of_good_pedigree()); } diff --git a/src/test/run-pass/writealias.rs b/src/test/run-pass/writealias.rs index 8f990e07015..2db954d27c1 100644 --- a/src/test/run-pass/writealias.rs +++ b/src/test/run-pass/writealias.rs @@ -17,7 +17,7 @@ fn f(p: &mut Point) { p.z = 13; } pub fn main() { unsafe { - let x = Some(unstable::sync::exclusive(true)); + let x = Some(unstable::sync::Exclusive::new(true)); match x { Some(ref z) if z.with(|b| *b) => { do z.with |b| { assert!(*b); } |
