Skip to content

Commit 70f0072

Browse files
committed
---
yaml --- r: 187882 b: refs/heads/tmp c: bde4c1d h: refs/heads/master v: v3
1 parent 89ca460 commit 70f0072

File tree

4 files changed

+7
-11
lines changed

4 files changed

+7
-11
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
3434
refs/heads/beta: 522d09dfecbeca1595f25ac58c6d0178bbd21d7d
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3636
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
37-
refs/heads/tmp: 158d99d3f13c2bef9097122b81adfb5e7185ca6a
37+
refs/heads/tmp: bde4c1d6fbefcd914a06b5eab6ef6f9a6f26f271
3838
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

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

Lines changed: 2 additions & 4 deletions
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
}

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

Lines changed: 3 additions & 3 deletions
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);

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

Lines changed: 1 addition & 3 deletions
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)