remove cfg(stage0) version of Eq, not needed for tests
This commit is contained in:
parent
7abf55736c
commit
38595e6664
@ -23,17 +23,6 @@ struct cmplx {
|
||||
im: f64
|
||||
}
|
||||
|
||||
#[cfg(stage0)]
|
||||
impl cmplx : ops::Mul<cmplx,cmplx> {
|
||||
pure fn mul(x: cmplx) -> cmplx {
|
||||
cmplx {
|
||||
re: self.re*x.re - self.im*x.im,
|
||||
im: self.re*x.im + self.im*x.re
|
||||
}
|
||||
}
|
||||
}
|
||||
#[cfg(stage1)]
|
||||
#[cfg(stage2)]
|
||||
impl cmplx : ops::Mul<cmplx,cmplx> {
|
||||
pure fn mul(x: &cmplx) -> cmplx {
|
||||
cmplx {
|
||||
@ -43,17 +32,6 @@ impl cmplx : ops::Mul<cmplx,cmplx> {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(stage0)]
|
||||
impl cmplx : ops::Add<cmplx,cmplx> {
|
||||
pure fn add(x: cmplx) -> cmplx {
|
||||
cmplx {
|
||||
re: self.re + x.re,
|
||||
im: self.im + x.im
|
||||
}
|
||||
}
|
||||
}
|
||||
#[cfg(stage1)]
|
||||
#[cfg(stage2)]
|
||||
impl cmplx : ops::Add<cmplx,cmplx> {
|
||||
pure fn add(x: &cmplx) -> cmplx {
|
||||
cmplx {
|
||||
|
Loading…
Reference in New Issue
Block a user