Skip to content

Commit ba9b825

Browse files
committed
---
yaml --- r: 41755 b: refs/heads/master c: 3bf8b8a h: refs/heads/master i: 41753: 5330cef 41751: 37b29bd v: v3
1 parent bb43d8b commit ba9b825

17 files changed

+29
-29
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 1be4bfb8ccfd6a91fe63cc2808f3c5e9177d52dd
2+
refs/heads/master: 3bf8b8af988fa5ffcb12ade36f6da49338df41ea
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 2f46b763da2c098913884f101b6d71d69af41b49
55
refs/heads/try: 3d5418789064fdb463e872a4e651af1c628a3650

trunk/src/librustc/middle/liveness.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1662,7 +1662,7 @@ fn check_fn(_fk: visit::fn_kind, _decl: fn_decl,
16621662
enum ReadKind {
16631663
PossiblyUninitializedVariable,
16641664
PossiblyUninitializedField,
1665-
MovedVariable
1665+
MovedValue
16661666
}
16671667

16681668
impl @Liveness {
@@ -1815,7 +1815,7 @@ impl @Liveness {
18151815
lnk: LiveNodeKind,
18161816
var: Variable) {
18171817

1818-
// the only time that it is possible to have a moved variable
1818+
// the only time that it is possible to have a moved value
18191819
// used by ExitNode would be arguments or fields in a ctor.
18201820
// we give a slightly different error message in those cases.
18211821
if lnk == ExitNode {
@@ -1837,7 +1837,7 @@ impl @Liveness {
18371837
}
18381838
}
18391839

1840-
self.report_illegal_read(move_span, lnk, var, MovedVariable);
1840+
self.report_illegal_read(move_span, lnk, var, MovedValue);
18411841
self.tcx.sess.span_note(
18421842
move_span, ~"move of variable occurred here");
18431843

@@ -1852,7 +1852,7 @@ impl @Liveness {
18521852
~"possibly uninitialized variable"
18531853
}
18541854
PossiblyUninitializedField => ~"possibly uninitialized field",
1855-
MovedVariable => ~"moved variable"
1855+
MovedValue => ~"moved value"
18561856
};
18571857
let name = (*self.ir).variable_name(var);
18581858
match lnk {

trunk/src/test/compile-fail/alt-vec-tail-move.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ fn main() {
44
[1, 2, ..move tail] => tail,
55
_ => core::util::unreachable()
66
};
7-
a[0] = 0; //~ ERROR: use of moved variable
7+
a[0] = 0; //~ ERROR: use of moved value
88
}

trunk/src/test/compile-fail/cap-clause-use-after-move.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
fn main() {
1212
let x = 5;
1313
let _y = fn~(move x) { }; //~ WARNING captured variable `x` not used in closure
14-
let _z = x; //~ ERROR use of moved variable: `x`
14+
let _z = x; //~ ERROR use of moved value: `x`
1515
}

trunk/src/test/compile-fail/liveness-move-from-mode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ fn main() {
1414

1515
let x: int = 25;
1616
loop {
17-
take(move x); //~ ERROR use of moved variable: `x`
17+
take(move x); //~ ERROR use of moved value: `x`
1818
//~^ NOTE move of variable occurred here
1919
}
2020
}

trunk/src/test/compile-fail/liveness-move-in-loop.rs

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

2626
copy x;
2727
}

trunk/src/test/compile-fail/liveness-move-in-while.rs

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

trunk/src/test/compile-fail/liveness-use-after-move.rs

Lines changed: 2 additions & 2 deletions
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 variable occurred here
14-
log(debug, *x); //~ ERROR use of moved variable: `x`
13+
let y = move x; //~ NOTE move of value occurred here
14+
log(debug, *x); //~ ERROR use of moved value: `x`
1515
copy y;
1616
}

trunk/src/test/compile-fail/liveness-use-after-send.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ 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 variable occurred here
23-
log(debug, message); //~ ERROR use of moved variable: `message`
22+
send(ch, move message); //~ NOTE move of value occurred here
23+
log(debug, message); //~ ERROR use of moved value: `message`
2424
}
2525

2626
fn main() { fail; }

trunk/src/test/compile-fail/move-based-on-type-tuple.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
fn dup(x: ~int) -> ~(~int,~int) { ~(x, x) } //~ ERROR use of moved variable
11+
fn dup(x: ~int) -> ~(~int,~int) { ~(x, x) } //~ ERROR use of moved value
1212
fn main() {
1313
dup(~3);
1414
}

trunk/src/test/compile-fail/moves-based-on-type-capture-clause-bad.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ fn main() {
33
do task::spawn {
44
io::println(x);
55
}
6-
io::println(x); //~ ERROR use of moved variable
6+
io::println(x); //~ ERROR use of moved value
77
}
88

trunk/src/test/compile-fail/no-capture-arc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// error-pattern: use of moved variable
11+
// error-pattern: use of moved value
1212

1313
extern mod std;
1414
use std::arc;

trunk/src/test/compile-fail/no-reuse-move-arc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ 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 variable occurred here
19+
do task::spawn() |move arc_v| { //~ NOTE move of value occurred here
2020
let v = *arc::get(&arc_v);
2121
assert v[3] == 4;
2222
};
2323

24-
assert (*arc::get(&arc_v))[2] == 3; //~ ERROR use of moved variable: `arc_v`
24+
assert (*arc::get(&arc_v))[2] == 3; //~ ERROR use of moved value: `arc_v`
2525

2626
log(info, arc_v);
2727
}

trunk/src/test/compile-fail/unary-move.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// error-pattern: use of moved variable
11+
// error-pattern: use of moved value
1212

1313
fn main() {
1414
let x = 3;

trunk/src/test/compile-fail/use-after-move-based-on-type.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
fn main() {
1212
let x = ~"Hello!";
1313
let _y = x;
14-
io::println(x); //~ ERROR use of moved variable
14+
io::println(x); //~ ERROR use of moved value
1515
}
1616

trunk/src/test/compile-fail/use-after-move-self-based-on-type.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ struct S {
66
impl S {
77
fn foo(self) -> int {
88
self.bar();
9-
return self.x; //~ ERROR use of moved variable
9+
return self.x; //~ ERROR use of moved value
1010
}
1111

1212
fn bar(self) {}

trunk/src/test/compile-fail/use-after-move-self.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ struct S {
55
impl S {
66
fn foo(self) -> int {
77
(move self).bar();
8-
return self.x; //~ ERROR use of moved variable
8+
return self.x; //~ ERROR use of moved value
99
}
1010

1111
fn bar(self) {}

0 commit comments

Comments
 (0)