File tree Expand file tree Collapse file tree 4 files changed +15
-3
lines changed Expand file tree Collapse file tree 4 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 2d28d645422c1617be58c8ca7ad9a457264ca850
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: 5d409ccd30c92099f3637e7f5545b4cea6b705b1
4
+ refs/heads/snap-stage3: a5912736be38ff10e41b475634119f83b937a072
5
5
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
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 @@ -932,12 +932,12 @@ static lock_and_signal change_dir_lock;
932
932
933
933
extern " C" CDECL void
934
934
rust_take_change_dir_lock () {
935
- change_dir_lock .lock ();
935
+ global_args_lock .lock ();
936
936
}
937
937
938
938
extern " C" CDECL void
939
939
rust_drop_change_dir_lock () {
940
- change_dir_lock .unlock ();
940
+ global_args_lock .unlock ();
941
941
}
942
942
943
943
//
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