Skip to content

Commit d9ae1bc

Browse files
committed
---
yaml --- r: 52334 b: refs/heads/dist-snap c: 9f7514b h: refs/heads/master v: v3
1 parent 9541559 commit d9ae1bc

9 files changed

+16
-19
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
99
refs/heads/incoming: 44d4d6de762f3f9aae1fedcf454c66b79b3ad58d
10-
refs/heads/dist-snap: f405e41d7a43ebd7fdd0fcd90f6e0542a5a6ccf6
10+
refs/heads/dist-snap: 9f7514bfaeef44077c5ecb78fb8571e6f0979ece
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1313
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/src/test/compile-fail/borrowck-loan-rcvr-overloaded-op.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,8 @@ fn c() {
5555
*q + 3;
5656

5757

58-
// ...but not impure fns
59-
(*q).times(3); //~ ERROR illegal borrow unless pure
60-
//~^ NOTE impure due to access to impure function
58+
// ...and impure fns
59+
(*q).times(3);
6160
}
6261

6362
fn main() {

branches/dist-snap/src/test/compile-fail/borrowck-loan-rcvr.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,8 @@ fn c() {
6262
// ...this is ok for pure fns
6363
(*q).purem();
6464

65-
// ...but not impure fns
66-
(*q).impurem(); //~ ERROR illegal borrow unless pure
67-
//~^ NOTE impure due to access to impure function
65+
// ...and impure fns
66+
(*q).impurem();
6867
}
6968

7069
fn main() {

branches/dist-snap/src/test/compile-fail/liveness-move-in-loop.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ fn main() {
1919
loop {
2020
// tjc: Not sure why it prints the same error twice
2121
x = move y; //~ ERROR use of moved value
22-
//~^ NOTE move of value occurred here
22+
//~^ NOTE move of variable occurred here
2323
//~^^ ERROR use of moved value
24-
//~^^^ NOTE move of value occurred here
24+
//~^^^ NOTE move of variable occurred here
2525

2626
copy x;
2727
}

branches/dist-snap/src/test/compile-fail/liveness-move-in-while.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ fn main() {
1717
// tjc: not sure why it prints the same error twice
1818
while true { while true { while true { x = move y; copy x; } } }
1919
//~^ ERROR use of moved value: `y`
20-
//~^^ NOTE move of value occurred here
20+
//~^^ NOTE move of variable occurred here
2121
//~^^^ ERROR use of moved value: `y`
22-
//~^^^^ NOTE move of value occurred here
22+
//~^^^^ NOTE move of variable occurred here
2323
}
2424
}

branches/dist-snap/src/test/compile-fail/liveness-use-after-move.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
fn main() {
1212
let x = @5;
13-
let y = move x; //~ NOTE move of value occurred here
13+
let y = move x; //~ NOTE move of variable occurred here
1414
log(debug, *x); //~ ERROR use of moved value: `x`
1515
copy y;
1616
}

branches/dist-snap/src/test/compile-fail/liveness-use-after-send.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ enum _chan<T> = int;
1919
// Tests that "log(debug, message);" is flagged as using
2020
// message after the send deinitializes it
2121
fn test00_start(ch: _chan<int>, message: int, _count: int) {
22-
send(ch, move message); //~ NOTE move of value occurred here
22+
send(ch, move message); //~ NOTE move of variable occurred here
2323
log(debug, message); //~ ERROR use of moved value: `message`
2424
}
2525

branches/dist-snap/src/test/compile-fail/no-reuse-move-arc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ fn main() {
1616
let v = ~[1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
1717
let arc_v = arc::ARC(v);
1818

19-
do task::spawn() |move arc_v| { //~ NOTE move of value occurred here
19+
do task::spawn() |move arc_v| { //~ NOTE move of variable occurred here
2020
let v = *arc::get(&arc_v);
2121
assert v[3] == 4;
2222
};

branches/dist-snap/src/test/compile-fail/regions-escape-loop-via-vec.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,14 @@
99
// except according to those terms.
1010

1111
// The type of `y` ends up getting inferred to the type of the block.
12-
fn broken() -> int {
12+
fn broken() {
1313
let mut x = 3;
14-
let mut y = ~[&mut x];
14+
let mut _y = ~[&mut x];
1515
while x < 10 {
1616
let mut z = x;
17-
y += ~[&mut z]; //~ ERROR illegal borrow
17+
_y.push(&mut z); //~ ERROR illegal borrow
1818
x += 1;
1919
}
20-
vec::foldl(0, y, |v, p| v + **p )
2120
}
2221

23-
fn main() { }
22+
fn main() { }

0 commit comments

Comments
 (0)