Skip to content

Commit 38595e6

Browse files
committed
remove cfg(stage0) version of Eq, not needed for tests
1 parent 7abf557 commit 38595e6

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

src/test/bench/shootout-mandelbrot.rs

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,6 @@ struct cmplx {
2323
im: f64
2424
}
2525

26-
#[cfg(stage0)]
27-
impl cmplx : ops::Mul<cmplx,cmplx> {
28-
pure fn mul(x: cmplx) -> cmplx {
29-
cmplx {
30-
re: self.re*x.re - self.im*x.im,
31-
im: self.re*x.im + self.im*x.re
32-
}
33-
}
34-
}
35-
#[cfg(stage1)]
36-
#[cfg(stage2)]
3726
impl cmplx : ops::Mul<cmplx,cmplx> {
3827
pure fn mul(x: &cmplx) -> cmplx {
3928
cmplx {
@@ -43,17 +32,6 @@ impl cmplx : ops::Mul<cmplx,cmplx> {
4332
}
4433
}
4534

46-
#[cfg(stage0)]
47-
impl cmplx : ops::Add<cmplx,cmplx> {
48-
pure fn add(x: cmplx) -> cmplx {
49-
cmplx {
50-
re: self.re + x.re,
51-
im: self.im + x.im
52-
}
53-
}
54-
}
55-
#[cfg(stage1)]
56-
#[cfg(stage2)]
5735
impl cmplx : ops::Add<cmplx,cmplx> {
5836
pure fn add(x: &cmplx) -> cmplx {
5937
cmplx {

0 commit comments

Comments
 (0)