Skip to content

Commit 20a4a70

Browse files
committed
---
yaml --- r: 36782 b: refs/heads/try2 c: 02e804b h: refs/heads/master v: v3
1 parent d916b43 commit 20a4a70

11 files changed

+21
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: eb8fd119c65c67f3b1b8268cc7341c22d39b7b61
55
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: fe9294ef71a36a7d63a1d9fff07cf5601864869a
8+
refs/heads/try2: 02e804bba8e2e82e6e2112ceb297ffb237b42ea6
99
refs/heads/incoming: d9317a174e434d4c99fc1a37fd7dc0d2f5328d37
1010
refs/heads/dist-snap: 22efa39382d41b084fde1719df7ae8ce5697d8c9
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try2/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/try2/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/try2/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/try2/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/try2/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/try2/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/try2/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/try2/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/try2/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/try2/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)