Skip to content

Commit 7d36f5d

Browse files
committed
---
yaml --- r: 39231 b: refs/heads/incoming c: 45052e1 h: refs/heads/master i: 39229: e798218 39227: bbfb03e 39223: 623e76f 39215: d22cd9f 39199: 2c395d9 39167: 6f576ae v: v3
1 parent 45b234e commit 7d36f5d

10 files changed

+11
-37
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: 3d5418789064fdb463e872a4e651af1c628a3650
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: a810c03263670238bccd64cabb12a23a46e3a278
9-
refs/heads/incoming: b27150ef82c65b3e827b0ffb2a22d3baf131a347
9+
refs/heads/incoming: 45052e13a5a1835974ca2c2a3e648416db9d38cc
1010
refs/heads/dist-snap: 22efa39382d41b084fde1719df7ae8ce5697d8c9
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/incoming/src/test/compile-fail/borrowck-issue-2657-1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ fn main() {
22
let x = Some(~1);
33
match x { //~ NOTE loan of immutable local variable granted here
44
Some(ref _y) => {
5-
let _a = move x; //~ ERROR moving out of immutable local variable prohibited due to outstanding loan
5+
let _a = x; //~ ERROR moving out of immutable local variable prohibited due to outstanding loan
66
}
77
_ => {}
88
}

branches/incoming/src/test/compile-fail/borrowck-issue-2657-2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ fn main() {
22
let x = Some(~1);
33
match x {
44
Some(ref y) => {
5-
let _b = move *y; //~ ERROR moving out of dereference of immutable & pointer
5+
let _b = *y; //~ ERROR moving out of dereference of immutable & pointer
66
}
77
_ => {}
88
}

branches/incoming/src/test/compile-fail/borrowck-loan-blocks-move.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
fn take(-_v: ~int) {
1+
fn take(_v: ~int) {
22
}
33

44
fn box_imm() {
55
let v = ~3;
66
let _w = &v; //~ NOTE loan of immutable local variable granted here
7-
take(move v); //~ ERROR moving out of immutable local variable prohibited due to outstanding loan
7+
take(v); //~ ERROR moving out of immutable local variable prohibited due to outstanding loan
88
}
99

1010
fn main() {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ struct Point {
44
}
55

66
impl Point : ops::Add<int,int> {
7-
pure fn add(z: &int) -> int {
7+
pure fn add(&self, z: &int) -> int {
88
self.x + self.y + (*z)
99
}
1010
}

branches/incoming/src/test/compile-fail/borrowck-no-cycle-in-exchange-heap.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ fn main() {
77
// Create a cycle!
88
match *x { //~ NOTE loan of immutable local variable granted here
99
node(ref y) => {
10-
y.a = move x; //~ ERROR moving out of immutable local variable prohibited due to outstanding loan
10+
y.a = x; //~ ERROR moving out of immutable local variable prohibited due to outstanding loan
1111
}
1212
empty => {}
1313
};

branches/incoming/src/test/compile-fail/borrowck-unary-move-2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ enum wrapper = noncopyable;
1818

1919
fn main() {
2020
let x1 = wrapper(noncopyable());
21-
let _x2 = move *x1; //~ ERROR moving out of enum content
21+
let _x2 = *x1; //~ ERROR moving out of enum content
2222
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
fn foo(+x: ~int) -> int {
22
let y = &*x; //~ NOTE loan of argument granted here
3-
free(move x); //~ ERROR moving out of argument prohibited due to outstanding loan
3+
free(x); //~ ERROR moving out of argument prohibited due to outstanding loan
44
*y
55
}
66

77
fn free(+_x: ~int) {
88
}
99

1010
fn main() {
11-
}
11+
}

branches/incoming/src/test/compile-fail/issue-2587-2.rs

Lines changed: 0 additions & 26 deletions
This file was deleted.

branches/incoming/src/test/compile-fail/issue-2590.rs

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

1111
impl parser: parse {
1212
fn parse() -> ~[int] {
13-
dvec::unwrap(move self.tokens) //~ ERROR moving out of immutable field
13+
dvec::unwrap(self.tokens) //~ ERROR moving out of immutable field
1414
}
1515
}
1616

0 commit comments

Comments
 (0)