File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 5c6069c7a90761c120cecbd8e18317bce21dd213
2
+ refs/heads/master: 9824d90ffd7684eca7171c4e019fd85b9317904e
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 18e3db7392d2d0697b7e27d6d986139960144d85
5
5
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
Original file line number Diff line number Diff line change @@ -16,6 +16,10 @@ Functions for the unit type.
16
16
17
17
#[ cfg( not( test) ) ]
18
18
use prelude:: * ;
19
+ #[ cfg( not( test) ) ]
20
+ use num:: Zero ;
21
+
22
+
19
23
20
24
#[ cfg( not( test) ) ]
21
25
impl Eq for ( ) {
@@ -48,3 +52,10 @@ impl TotalEq for () {
48
52
#[ inline]
49
53
fn equals ( & self , _other : & ( ) ) -> bool { true }
50
54
}
55
+
56
+ #[ cfg( not( test) ) ]
57
+ impl Zero for ( ) {
58
+ fn zero ( ) -> ( ) { ( ) }
59
+ fn is_zero ( & self ) -> bool { true }
60
+ }
61
+
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ struct Lots {
34
34
h : ~[ util:: NonCopyable ] ,
35
35
i : @mut ( int , int ) ,
36
36
j : bool ,
37
+ k : ( ) ,
37
38
}
38
39
39
40
fn main ( ) {
You can’t perform that action at this time.
0 commit comments