File tree 4 files changed +13
-54
lines changed
4 files changed +13
-54
lines changed 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