Skip to content

Commit bde4c1d

Browse files
committed
Test fixes and rebase conflicts
1 parent 158d99d commit bde4c1d

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

src/test/auxiliary/static-methods-crate.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,12 @@
1111
#![crate_name="static_methods_crate"]
1212
#![crate_type = "lib"]
1313

14-
use std::int;
15-
1614
pub trait read {
1715
fn readMaybe(s: String) -> Option<Self>;
1816
}
1917

20-
impl read for int {
21-
fn readMaybe(s: String) -> Option<int> {
18+
impl read for isize {
19+
fn readMaybe(s: String) -> Option<isize> {
2220
s.parse().ok()
2321
}
2422
}

src/test/run-pass/deriving-primitive.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@
99
// except according to those terms.
1010

1111
use std::num::FromPrimitive;
12-
use std::int;
12+
use std::isize;
1313

1414
#[derive(PartialEq, FromPrimitive, Debug)]
1515
enum A {
16-
Foo = int::MAX,
16+
Foo = isize::MAX,
1717
Bar = 1,
1818
Baz = 3,
1919
Qux,
2020
}
2121

2222
pub fn main() {
23-
let x: Option<A> = FromPrimitive::from_int(int::MAX);
23+
let x: Option<A> = FromPrimitive::from_int(isize::MAX);
2424
assert_eq!(x, Some(A::Foo));
2525

2626
let x: Option<A> = FromPrimitive::from_int(1);

src/test/run-pass/match-with-ret-arm.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,11 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
use std::uint;
12-
1311
pub fn main() {
1412
// sometimes we have had trouble finding
1513
// the right type for f, as we unified
1614
// bot and u32 here
17-
let f = match "1234".parse::<uint>().ok() {
15+
let f = match "1234".parse::<usize>().ok() {
1816
None => return (),
1917
Some(num) => num as u32
2018
};

0 commit comments

Comments
 (0)