File tree Expand file tree Collapse file tree 5 files changed +14
-55
lines changed Expand file tree Collapse file tree 5 files changed +14
-55
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
31
31
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
32
32
refs/heads/batch: b7fd822592a4fb577552d93010c4a4e14f314346
33
33
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
34
- refs/heads/beta: 9e28caef31de0b36262273be13d29cec80876f77
34
+ refs/heads/beta: c74d49c804c3c75172ea06efb83e1a863929da52
35
35
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
36
36
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
37
37
refs/heads/tmp: de8a23bbc3a7b9cbd7574b5b91a34af59bf030e6
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 12
12
13
13
use core:: prelude:: * ;
14
14
use core:: char;
15
- use core:: int ;
16
- use core:: uint ;
15
+ use core:: isize ;
16
+ use core:: usize ;
17
17
18
18
use { Rand , Rng } ;
19
19
20
- impl Rand for int {
20
+ impl Rand for isize {
21
21
#[ inline]
22
- fn rand < R : Rng > ( rng : & mut R ) -> int {
23
- if int :: BITS == 32 {
24
- rng. gen :: < i32 > ( ) as int
22
+ fn rand < R : Rng > ( rng : & mut R ) -> isize {
23
+ if isize :: BITS == 32 {
24
+ rng. gen :: < i32 > ( ) as isize
25
25
} else {
26
- rng. gen :: < i64 > ( ) as int
26
+ rng. gen :: < i64 > ( ) as isize
27
27
}
28
28
}
29
29
}
@@ -56,13 +56,13 @@ impl Rand for i64 {
56
56
}
57
57
}
58
58
59
- impl Rand for uint {
59
+ impl Rand for usize {
60
60
#[ inline]
61
- fn rand < R : Rng > ( rng : & mut R ) -> uint {
62
- if uint :: BITS == 32 {
63
- rng. gen :: < u32 > ( ) as uint
61
+ fn rand < R : Rng > ( rng : & mut R ) -> usize {
62
+ if usize :: BITS == 32 {
63
+ rng. gen :: < u32 > ( ) as usize
64
64
} else {
65
- rng. gen :: < u64 > ( ) as uint
65
+ rng. gen :: < u64 > ( ) as usize
66
66
}
67
67
}
68
68
}
Original file line number Diff line number Diff line change 109
109
#![ feature( box_syntax) ]
110
110
#![ feature( collections) ]
111
111
#![ feature( core) ]
112
- #![ feature( int_uint ) ]
112
+ #![ feature( hash ) ]
113
113
#![ feature( lang_items) ]
114
114
#![ feature( libc) ]
115
115
#![ feature( linkage, thread_local, asm) ]
You can’t perform that action at this time.
0 commit comments