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 2
2
refs/heads/master: 38e97b99a6b133cb4c621c68e75b28abc6c617c1
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 3a96d6a9818fe2affc98a187fb1065120458cee9
5
- refs/heads/try: 9e28caef31de0b36262273be13d29cec80876f77
5
+ refs/heads/try: c74d49c804c3c75172ea06efb83e1a863929da52
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
8
8
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
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