diff --git a/src/test/compile-fail/borrowck-loan-rcvr-overloaded-op.rs b/src/test/compile-fail/borrowck-loan-rcvr-overloaded-op.rs index c06bc7bebe3c..cb106963d1b2 100644 --- a/src/test/compile-fail/borrowck-loan-rcvr-overloaded-op.rs +++ b/src/test/compile-fail/borrowck-loan-rcvr-overloaded-op.rs @@ -55,9 +55,8 @@ fn c() { *q + 3; - // ...but not impure fns - (*q).times(3); //~ ERROR illegal borrow unless pure - //~^ NOTE impure due to access to impure function + // ...and impure fns + (*q).times(3); } fn main() { diff --git a/src/test/compile-fail/borrowck-loan-rcvr.rs b/src/test/compile-fail/borrowck-loan-rcvr.rs index a60215ec8018..48ec7db63e95 100644 --- a/src/test/compile-fail/borrowck-loan-rcvr.rs +++ b/src/test/compile-fail/borrowck-loan-rcvr.rs @@ -62,9 +62,8 @@ fn c() { // ...this is ok for pure fns (*q).purem(); - // ...but not impure fns - (*q).impurem(); //~ ERROR illegal borrow unless pure - //~^ NOTE impure due to access to impure function + // ...and impure fns + (*q).impurem(); } fn main() { diff --git a/src/test/compile-fail/liveness-move-in-loop.rs b/src/test/compile-fail/liveness-move-in-loop.rs index 0935d4299665..f0a5ea034557 100644 --- a/src/test/compile-fail/liveness-move-in-loop.rs +++ b/src/test/compile-fail/liveness-move-in-loop.rs @@ -19,9 +19,9 @@ fn main() { loop { // tjc: Not sure why it prints the same error twice x = move y; //~ ERROR use of moved value - //~^ NOTE move of value occurred here + //~^ NOTE move of variable occurred here //~^^ ERROR use of moved value - //~^^^ NOTE move of value occurred here + //~^^^ NOTE move of variable occurred here copy x; } diff --git a/src/test/compile-fail/liveness-move-in-while.rs b/src/test/compile-fail/liveness-move-in-while.rs index 9f261fdb2d1b..6110f2261b88 100644 --- a/src/test/compile-fail/liveness-move-in-while.rs +++ b/src/test/compile-fail/liveness-move-in-while.rs @@ -17,8 +17,8 @@ fn main() { // tjc: not sure why it prints the same error twice while true { while true { while true { x = move y; copy x; } } } //~^ ERROR use of moved value: `y` - //~^^ NOTE move of value occurred here + //~^^ NOTE move of variable occurred here //~^^^ ERROR use of moved value: `y` - //~^^^^ NOTE move of value occurred here + //~^^^^ NOTE move of variable occurred here } } diff --git a/src/test/compile-fail/liveness-use-after-move.rs b/src/test/compile-fail/liveness-use-after-move.rs index d48cbc23e158..9113ed535b70 100644 --- a/src/test/compile-fail/liveness-use-after-move.rs +++ b/src/test/compile-fail/liveness-use-after-move.rs @@ -10,7 +10,7 @@ fn main() { let x = @5; - let y = move x; //~ NOTE move of value occurred here + let y = move x; //~ NOTE move of variable occurred here log(debug, *x); //~ ERROR use of moved value: `x` copy y; } diff --git a/src/test/compile-fail/liveness-use-after-send.rs b/src/test/compile-fail/liveness-use-after-send.rs index 2a1e486d1335..5d347fce10a0 100644 --- a/src/test/compile-fail/liveness-use-after-send.rs +++ b/src/test/compile-fail/liveness-use-after-send.rs @@ -19,7 +19,7 @@ enum _chan = int; // Tests that "log(debug, message);" is flagged as using // message after the send deinitializes it fn test00_start(ch: _chan, message: int, _count: int) { - send(ch, move message); //~ NOTE move of value occurred here + send(ch, move message); //~ NOTE move of variable occurred here log(debug, message); //~ ERROR use of moved value: `message` } diff --git a/src/test/compile-fail/no-reuse-move-arc.rs b/src/test/compile-fail/no-reuse-move-arc.rs index a959772f5d24..e3408b6372b1 100644 --- a/src/test/compile-fail/no-reuse-move-arc.rs +++ b/src/test/compile-fail/no-reuse-move-arc.rs @@ -16,7 +16,7 @@ fn main() { let v = ~[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; let arc_v = arc::ARC(v); - do task::spawn() |move arc_v| { //~ NOTE move of value occurred here + do task::spawn() |move arc_v| { //~ NOTE move of variable occurred here let v = *arc::get(&arc_v); assert v[3] == 4; }; diff --git a/src/test/compile-fail/regions-escape-loop-via-vec.rs b/src/test/compile-fail/regions-escape-loop-via-vec.rs index ffab3b770447..7490448caf00 100644 --- a/src/test/compile-fail/regions-escape-loop-via-vec.rs +++ b/src/test/compile-fail/regions-escape-loop-via-vec.rs @@ -9,15 +9,14 @@ // except according to those terms. // The type of `y` ends up getting inferred to the type of the block. -fn broken() -> int { +fn broken() { let mut x = 3; - let mut y = ~[&mut x]; + let mut _y = ~[&mut x]; while x < 10 { let mut z = x; - y += ~[&mut z]; //~ ERROR illegal borrow + _y.push(&mut z); //~ ERROR illegal borrow x += 1; } - vec::foldl(0, y, |v, p| v + **p ) } -fn main() { } \ No newline at end of file +fn main() { }