Skip to content

Commit 90f7a4e

Browse files
committed
---
yaml --- r: 34170 b: refs/heads/snap-stage3 c: 02e804b h: refs/heads/master v: v3
1 parent 76dff49 commit 90f7a4e

11 files changed

+21
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: fe9294ef71a36a7d63a1d9fff07cf5601864869a
4+
refs/heads/snap-stage3: 02e804bba8e2e82e6e2112ceb297ffb237b42ea6
55
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/test/run-pass/borrowck-preserve-box-in-arm-not-taken.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
fn main() {
1414
let x: @mut @Option<~int> = @mut @None;
1515
match x {
16-
@@Some(y) => {
16+
@@Some(ref y) => {
1717
// here, the refcount of `*x` is bumped so
1818
// `y` remains valid even if `*x` is modified.
1919
*x = @None;
@@ -24,4 +24,4 @@ fn main() {
2424
// works.
2525
}
2626
}
27-
}
27+
}

branches/snap-stage3/src/test/run-pass/boxed-trait-with-vstore.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
trait Foo {
12-
fn foo() {}
12+
fn foo();
1313
}
1414

1515
impl int : Foo {

branches/snap-stage3/src/test/run-pass/default-method-simple.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#[allow(default_methods)];
12+
1113
trait Foo {
1214
fn f() {
1315
io::println("Hello!");

branches/snap-stage3/src/test/run-pass/issue-2718.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ mod pingpong {
220220

221221
fn liberate_ping(-p: ping) -> pipes::send_packet<pong> unsafe {
222222
let addr : *pipes::send_packet<pong> = match &p {
223-
&ping(x) => { cast::transmute(ptr::addr_of(&x)) }
223+
&ping(ref x) => { cast::transmute(ptr::addr_of(x)) }
224224
};
225225
let liberated_value = move *addr;
226226
cast::forget(move p);
@@ -229,7 +229,7 @@ mod pingpong {
229229

230230
fn liberate_pong(-p: pong) -> pipes::send_packet<ping> unsafe {
231231
let addr : *pipes::send_packet<ping> = match &p {
232-
&pong(x) => { cast::transmute(ptr::addr_of(&x)) }
232+
&pong(ref x) => { cast::transmute(ptr::addr_of(x)) }
233233
};
234234
let liberated_value = move *addr;
235235
cast::forget(move p);

branches/snap-stage3/src/test/run-pass/issue-3683.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#[allow(default_methods)];
12+
1113
trait Foo {
1214
fn a() -> int;
1315
fn b() -> int {

branches/snap-stage3/src/test/run-pass/trait-default-method-bound-subst3.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#[allow(default_methods)];
12+
1113
trait A {
1214
fn g<T>(x: T, y: T) -> (T, T) { (move x, move y) }
1315
}

branches/snap-stage3/src/test/run-pass/trait-default-method-bound-subst4.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#[allow(default_methods)];
12+
1113
trait A<T> {
1214
fn g(x: uint) -> uint { move x }
1315
}

branches/snap-stage3/src/test/run-pass/trait-default-method-bound.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#[allow(default_methods)];
12+
1113
trait A {
1214
fn g() -> int { 10 }
1315
}

branches/snap-stage3/src/test/run-pass/traits-default-method-macro.rs

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

11+
#[allow(default_methods)];
12+
1113
trait Foo {
1214
fn bar() -> ~str {
1315
fmt!("test")
@@ -24,4 +26,4 @@ impl Baz: Foo {
2426
fn main() {
2527
let q = Quux;
2628
assert q.bar() == ~"test";
27-
}
29+
}

branches/snap-stage3/src/test/run-pass/traits-default-method-trivial.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#[allow(default_methods)];
12+
1113
trait Cat {
1214
fn meow() -> bool;
1315
fn scratch() -> bool;

0 commit comments

Comments
 (0)