Skip to content

Commit 7a4cc43

Browse files
committed
---
yaml --- r: 48716 b: refs/heads/snap-stage3 c: ac60d53 h: refs/heads/master v: v3
1 parent 61ccf99 commit 7a4cc43

File tree

9 files changed

+20
-20
lines changed

9 files changed

+20
-20
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: 3bbcac322669cff3abde5be937cc4ec3860f3985
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 8fa66e8e07ca565119de195ceefb20cff50ae1ea
4+
refs/heads/snap-stage3: ac60d53c65fe499660ea6b508200283bb3cdb19d
55
refs/heads/try: 2a8fb58d79e685d5ca07b039badcf2ae3ef077ea
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/test/auxiliary/cci_impl_lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
#[link(name="cci_impl_lib", vers="0.0")];
1212

1313
trait uint_helpers {
14-
fn to(self, v: uint, f: &fn(uint));
14+
fn to(&self, v: uint, f: &fn(uint));
1515
}
1616

1717
impl uint_helpers for uint {
1818
#[inline]
19-
fn to(self, v: uint, f: &fn(uint)) {
20-
let mut i = self;
19+
fn to(&self, v: uint, f: &fn(uint)) {
20+
let mut i = *self;
2121
while i < v {
2222
f(i);
2323
i += 1u;

branches/snap-stage3/src/test/run-pass/assignability-trait.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ trait iterable<A> {
1818

1919
impl<A> iterable<A> for &self/[A] {
2020
fn iterate(&self, f: &fn(x: &A) -> bool) {
21-
for vec::each(self) |e| {
21+
for vec::each(*self) |e| {
2222
if !f(e) { break; }
2323
}
2424
}
2525
}
2626

2727
impl<A> iterable<A> for ~[A] {
2828
fn iterate(&self, f: &fn(x: &A) -> bool) {
29-
for vec::each(self) |e| {
29+
for vec::each(*self) |e| {
3030
if !f(e) { break; }
3131
}
3232
}

branches/snap-stage3/src/test/run-pass/auto-ref.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ struct Foo {
1313
}
1414

1515
trait Stuff {
16-
fn printme(self);
16+
fn printme(&self);
1717
}
1818

19-
impl Stuff for &self/Foo {
20-
fn printme(self) {
19+
impl Stuff for Foo {
20+
fn printme(&self) {
2121
io::println(fmt!("%d", self.x));
2222
}
2323
}

branches/snap-stage3/src/test/run-pass/autoderef-method-on-trait.rs

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

1111
trait double {
12-
fn double(self) -> uint;
12+
fn double(@self) -> uint;
1313
}
1414

1515
impl double for uint {
16-
fn double(self) -> uint { self * 2u }
16+
fn double(@self) -> uint { *self * 2u }
1717
}
1818

1919
pub fn main() {

branches/snap-stage3/src/test/run-pass/autoderef-method-twice-but-not-thrice.rs

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

1111
trait double {
12-
fn double(self) -> uint;
12+
fn double(@self) -> uint;
1313
}
1414

15-
impl double for @@uint {
16-
fn double(self) -> uint { **self * 2u }
15+
impl double for @uint {
16+
fn double(@self) -> uint { **self * 2u }
1717
}
1818

1919
pub fn main() {

branches/snap-stage3/src/test/run-pass/autoderef-method-twice.rs

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

1111
trait double {
12-
fn double(self) -> uint;
12+
fn double(@self) -> uint;
1313
}
1414

1515
impl double for uint {
16-
fn double(self) -> uint { self * 2u }
16+
fn double(@self) -> uint { *self * 2u }
1717
}
1818

1919
pub fn main() {

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

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

1111
trait double {
12-
fn double(self) -> uint;
12+
fn double(@self) -> uint;
1313
}
1414

1515
impl double for uint {
16-
fn double(self) -> uint { self * 2u }
16+
fn double(@self) -> uint { *self * 2u }
1717
}
1818

1919
pub fn main() {

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

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

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

1515
impl Foo for int {
16-
fn foo(self) {
16+
fn foo(@self) {
1717
io::println("Hello world!");
1818
}
1919
}

0 commit comments

Comments
 (0)