Skip to content

Commit 27d359a

Browse files
---
yaml --- r: 188117 b: refs/heads/try c: c74d49c h: refs/heads/master i: 188115: 8a94192 v: v3
1 parent 48a0879 commit 27d359a

File tree

5 files changed

+14
-55
lines changed

5 files changed

+14
-55
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 38e97b99a6b133cb4c621c68e75b28abc6c617c1
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 3a96d6a9818fe2affc98a187fb1065120458cee9
5-
refs/heads/try: 9e28caef31de0b36262273be13d29cec80876f77
5+
refs/heads/try: c74d49c804c3c75172ea06efb83e1a863929da52
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
88
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try/src/libcore/num/int.rs

Lines changed: 0 additions & 21 deletions
This file was deleted.

branches/try/src/libcore/num/uint.rs

Lines changed: 0 additions & 20 deletions
This file was deleted.

branches/try/src/librand/rand_impls.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@
1212
1313
use core::prelude::*;
1414
use core::char;
15-
use core::int;
16-
use core::uint;
15+
use core::isize;
16+
use core::usize;
1717

1818
use {Rand,Rng};
1919

20-
impl Rand for int {
20+
impl Rand for isize {
2121
#[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
2525
} else {
26-
rng.gen::<i64>() as int
26+
rng.gen::<i64>() as isize
2727
}
2828
}
2929
}
@@ -56,13 +56,13 @@ impl Rand for i64 {
5656
}
5757
}
5858

59-
impl Rand for uint {
59+
impl Rand for usize {
6060
#[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
6464
} else {
65-
rng.gen::<u64>() as uint
65+
rng.gen::<u64>() as usize
6666
}
6767
}
6868
}

branches/try/src/libstd/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
#![feature(box_syntax)]
110110
#![feature(collections)]
111111
#![feature(core)]
112-
#![feature(int_uint)]
112+
#![feature(hash)]
113113
#![feature(lang_items)]
114114
#![feature(libc)]
115115
#![feature(linkage, thread_local, asm)]

0 commit comments

Comments
 (0)