Register snapshots. Remove redundant Eq impls, Makefile hacks

This commit is contained in:
Brian Anderson 2012-09-23 22:25:43 -07:00
parent 2dae768624
commit afd91f8a56
76 changed files with 8 additions and 3677 deletions

View file

@ -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)))

View file

@ -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)

View file

@ -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 }