File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -23,17 +23,6 @@ struct cmplx {
23
23
im : f64
24
24
}
25
25
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) ]
37
26
impl cmplx : ops:: Mul < cmplx , cmplx > {
38
27
pure fn mul ( x : & cmplx ) -> cmplx {
39
28
cmplx {
@@ -43,17 +32,6 @@ impl cmplx : ops::Mul<cmplx,cmplx> {
43
32
}
44
33
}
45
34
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) ]
57
35
impl cmplx : ops:: Add < cmplx , cmplx > {
58
36
pure fn add ( x : & cmplx ) -> cmplx {
59
37
cmplx {
You can’t perform that action at this time.
0 commit comments