Register snapshots. Remove redundant Eq impls, Makefile hacks
This commit is contained in:
parent
2dae768624
commit
afd91f8a56
76 changed files with 8 additions and 3677 deletions
|
|
@ -2,14 +2,6 @@
|
|||
|
||||
enum foo = ~uint;
|
||||
|
||||
#[cfg(stage0)]
|
||||
impl foo: Add<foo, foo> {
|
||||
pure fn add(f: foo) -> foo {
|
||||
foo(~(**self + **f))
|
||||
}
|
||||
}
|
||||
#[cfg(stage1)]
|
||||
#[cfg(stage2)]
|
||||
impl foo : Add<foo, foo> {
|
||||
pure fn add(f: &foo) -> foo {
|
||||
foo(~(**self + **(*f)))
|
||||
|
|
|
|||
|
|
@ -8,14 +8,6 @@ struct Point {
|
|||
y: int,
|
||||
}
|
||||
|
||||
#[cfg(stage0)]
|
||||
impl Point : ops::Add<int,int> {
|
||||
pure fn add(&&z: int) -> int {
|
||||
self.x + self.y + z
|
||||
}
|
||||
}
|
||||
#[cfg(stage1)]
|
||||
#[cfg(stage2)]
|
||||
impl Point : ops::Add<int,int> {
|
||||
pure fn add(z: &int) -> int {
|
||||
self.x + self.y + (*z)
|
||||
|
|
|
|||
|
|
@ -16,14 +16,6 @@ struct S {
|
|||
|
||||
fn S(x: int) -> S { S { x: x } }
|
||||
|
||||
#[cfg(stage0)]
|
||||
impl S: Add<S, S> {
|
||||
pure fn add(rhs: S) -> S {
|
||||
S { x: self.x + rhs.x }
|
||||
}
|
||||
}
|
||||
#[cfg(stage1)]
|
||||
#[cfg(stage2)]
|
||||
impl S : Add<S, S> {
|
||||
pure fn add(rhs: &S) -> S {
|
||||
S { x: self.x + (*rhs).x }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue