Skip to content

Commit 4b3b02f

Browse files
committed
Auto merge of #22940 - Manishearth:rollup, r=Manishearth
2 parents 1576142 + 6988157 commit 4b3b02f

32 files changed

+589
-326
lines changed

src/libcore/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
//! distribution.
4040
//!
4141
//! * `rust_begin_unwind` - This function takes three arguments, a
42-
//! `fmt::Arguments`, a `&str`, and a `uint`. These three arguments dictate
42+
//! `fmt::Arguments`, a `&str`, and a `usize`. These three arguments dictate
4343
//! the panic message, the file at which panic was invoked, and the line.
4444
//! It is up to consumers of this core library to define this panic
4545
//! function; it is only required to never return.
@@ -88,14 +88,12 @@ mod int_macros;
8888
#[macro_use]
8989
mod uint_macros;
9090

91-
#[path = "num/int.rs"] pub mod int;
9291
#[path = "num/isize.rs"] pub mod isize;
9392
#[path = "num/i8.rs"] pub mod i8;
9493
#[path = "num/i16.rs"] pub mod i16;
9594
#[path = "num/i32.rs"] pub mod i32;
9695
#[path = "num/i64.rs"] pub mod i64;
9796

98-
#[path = "num/uint.rs"] pub mod uint;
9997
#[path = "num/usize.rs"] pub mod usize;
10098
#[path = "num/u8.rs"] pub mod u8;
10199
#[path = "num/u16.rs"] pub mod u16;

src/libcore/num/int.rs

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

src/libcore/num/uint.rs

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

src/libcoretest/iter.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use core::iter::*;
1212
use core::iter::order::*;
1313
use core::iter::MinMaxResult::*;
1414
use core::num::SignedInt;
15-
use core::uint;
15+
use core::usize;
1616
use core::cmp;
1717

1818
use test::Bencher;
@@ -292,7 +292,7 @@ fn test_unfoldr() {
292292
fn test_cycle() {
293293
let cycle_len = 3;
294294
let it = count(0, 1).take(cycle_len).cycle();
295-
assert_eq!(it.size_hint(), (uint::MAX, None));
295+
assert_eq!(it.size_hint(), (usize::MAX, None));
296296
for (i, x) in it.take(100).enumerate() {
297297
assert_eq!(i % cycle_len, x);
298298
}
@@ -365,19 +365,19 @@ fn test_iterator_size_hint() {
365365
let v2 = &[10, 11, 12];
366366
let vi = v.iter();
367367

368-
assert_eq!(c.size_hint(), (uint::MAX, None));
368+
assert_eq!(c.size_hint(), (usize::MAX, None));
369369
assert_eq!(vi.clone().size_hint(), (10, Some(10)));
370370

371371
assert_eq!(c.clone().take(5).size_hint(), (5, Some(5)));
372372
assert_eq!(c.clone().skip(5).size_hint().1, None);
373373
assert_eq!(c.clone().take_while(|_| false).size_hint(), (0, None));
374374
assert_eq!(c.clone().skip_while(|_| false).size_hint(), (0, None));
375-
assert_eq!(c.clone().enumerate().size_hint(), (uint::MAX, None));
376-
assert_eq!(c.clone().chain(vi.clone().cloned()).size_hint(), (uint::MAX, None));
375+
assert_eq!(c.clone().enumerate().size_hint(), (usize::MAX, None));
376+
assert_eq!(c.clone().chain(vi.clone().cloned()).size_hint(), (usize::MAX, None));
377377
assert_eq!(c.clone().zip(vi.clone()).size_hint(), (10, Some(10)));
378378
assert_eq!(c.clone().scan(0, |_,_| Some(0)).size_hint(), (0, None));
379379
assert_eq!(c.clone().filter(|_| false).size_hint(), (0, None));
380-
assert_eq!(c.clone().map(|_| 0).size_hint(), (uint::MAX, None));
380+
assert_eq!(c.clone().map(|_| 0).size_hint(), (usize::MAX, None));
381381
assert_eq!(c.filter_map(|_| Some(0)).size_hint(), (0, None));
382382

383383
assert_eq!(vi.clone().take(5).size_hint(), (5, Some(5)));
@@ -753,7 +753,7 @@ fn test_range() {
753753

754754
assert_eq!((0..100).size_hint(), (100, Some(100)));
755755
// this test is only meaningful when sizeof uint < sizeof u64
756-
assert_eq!((uint::MAX - 1..uint::MAX).size_hint(), (1, Some(1)));
756+
assert_eq!((usize::MAX - 1..usize::MAX).size_hint(), (1, Some(1)));
757757
assert_eq!((-10..-1).size_hint(), (9, Some(9)));
758758
assert_eq!((-1..-10).size_hint(), (0, Some(0)));
759759
}

src/libcoretest/num/int.rs

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

src/libcoretest/num/int_macros.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ macro_rules! int_module { ($T:ty, $T_i:ident) => (
1212
#[cfg(test)]
1313
mod tests {
1414
use core::$T_i::*;
15-
use core::int;
15+
use core::isize;
1616
use core::num::{FromStrRadix, Int, SignedInt};
1717
use core::ops::{Shl, Shr, Not, BitXor, BitAnd, BitOr};
1818
use num;
@@ -153,7 +153,7 @@ mod tests {
153153
fn test_signed_checked_div() {
154154
assert!(10.checked_div(2) == Some(5));
155155
assert!(5.checked_div(0) == None);
156-
assert!(int::MIN.checked_div(-1) == None);
156+
assert!(isize::MIN.checked_div(-1) == None);
157157
}
158158

159159
#[test]

src/libcoretest/num/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ mod i8;
2121
mod i16;
2222
mod i32;
2323
mod i64;
24-
mod int;
2524

2625
#[macro_use]
2726
mod uint_macros;
@@ -30,7 +29,6 @@ mod u8;
3029
mod u16;
3130
mod u32;
3231
mod u64;
33-
mod uint;
3432

3533
/// Helper function for testing numeric operations
3634
pub fn test_num<T>(ten: T, two: T) where

src/libcoretest/num/uint.rs

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

src/libgetopts/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,7 @@ fn test_split_within() {
963963
"little lamb".to_string(),
964964
"Little lamb".to_string()
965965
]);
966-
t("\nMary had a little lamb\nLittle lamb\n", ::std::uint::MAX,
966+
t("\nMary had a little lamb\nLittle lamb\n", ::std::usize::MAX,
967967
&["Mary had a little lamb\nLittle lamb".to_string()]);
968968
}
969969

src/liblibc/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,6 @@ pub mod types {
11151115
pub mod posix88 {
11161116
pub type off_t = i64;
11171117
pub type dev_t = u32;
1118-
pub type ino_t = u32;
11191118
pub type pid_t = i32;
11201119
pub type uid_t = u32;
11211120
pub type gid_t = u32;

0 commit comments

Comments
 (0)