Skip to content

Commit a067440

Browse files
huonwnikomatsakis
authored andcommitted
---
yaml --- r: 171646 b: refs/heads/batch c: 0c70ce1 h: refs/heads/master v: v3
1 parent ff89671 commit a067440

File tree

553 files changed

+1325
-1325
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

553 files changed

+1325
-1325
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
2929
refs/heads/issue-18208-method-dispatch-2: 9e1eae4fb9b6527315b4441cf8a0f5ca911d1671
3030
refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3131
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
32-
refs/heads/batch: 4f5a57e80ef6c029278f1e8ef59e13dcea9b255b
32+
refs/heads/batch: 0c70ce1424f380360dcc8d857c68d2df1a27b6fd
3333
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
3434
refs/heads/beta: 496dc4eae7de9d14cd49511a9acfbf5f11ae6c3f
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928

branches/batch/src/test/compile-fail/access-mode-in-closures.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
// except according to those terms.
1010

1111

12-
struct sty(Vec<int> );
12+
struct sty(Vec<isize> );
1313

14-
fn unpack<F>(_unpack: F) where F: FnOnce(&sty) -> Vec<int> {}
14+
fn unpack<F>(_unpack: F) where F: FnOnce(&sty) -> Vec<isize> {}
1515

1616
fn main() {
1717
let _foo = unpack(|s| {

branches/batch/src/test/compile-fail/arg-count-mismatch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010

1111
// error-pattern: parameters were supplied
1212

13-
fn f(x: int) { }
13+
fn f(x: isize) { }
1414

1515
fn main() { let i: (); i = f(); }

branches/batch/src/test/compile-fail/arg-type-mismatch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111

1212
// error-pattern: mismatched types
1313

14-
fn f(x: int) { }
14+
fn f(x: isize) { }
1515

1616
fn main() { let i: (); i = f(()); }

branches/batch/src/test/compile-fail/array-old-syntax-1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
// Test that the old fixed length array syntax is a parsing error.
1212

1313
fn main() {
14-
let _x: [int, ..3] = [0i, 1, 2]; //~ ERROR
14+
let _x: [isize, ..3] = [0i, 1, 2]; //~ ERROR
1515
}

branches/batch/src/test/compile-fail/asm-in-bad-modifier.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010

1111
#![feature(asm)]
1212

13-
fn foo(x: int) { println!("{}", x); }
13+
fn foo(x: isize) { println!("{}", x); }
1414

1515
#[cfg(any(target_arch = "x86",
1616
target_arch = "x86_64",
1717
target_arch = "arm",
1818
target_arch = "aarch64"))]
1919
pub fn main() {
20-
let x: int;
21-
let y: int;
20+
let x: isize;
21+
let y: isize;
2222
unsafe {
2323
asm!("mov $1, $0" : "=r"(x) : "=r"(5u)); //~ ERROR input operand constraint contains '='
2424
asm!("mov $1, $0" : "=r"(y) : "+r"(5u)); //~ ERROR input operand constraint contains '+'

branches/batch/src/test/compile-fail/asm-misplaced-option.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
target_arch = "x86_64"))]
1919
pub fn main() {
2020
// assignment not dead
21-
let mut x: int = 0;
21+
let mut x: isize = 0;
2222
unsafe {
2323
// extra colon
2424
asm!("mov $1, $0" : "=r"(x) : "r"(5u), "0"(x) : : "cc");

branches/batch/src/test/compile-fail/asm-out-assign-imm.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010

1111
#![feature(asm)]
1212

13-
fn foo(x: int) { println!("{}", x); }
13+
fn foo(x: isize) { println!("{}", x); }
1414

1515
#[cfg(any(target_arch = "x86",
1616
target_arch = "x86_64",
1717
target_arch = "arm",
1818
target_arch = "aarch64"))]
1919
pub fn main() {
20-
let x: int;
20+
let x: isize;
2121
x = 1; //~ NOTE prior assignment occurs here
2222
foo(x);
2323
unsafe {

branches/batch/src/test/compile-fail/asm-out-no-modifier.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010

1111
#![feature(asm)]
1212

13-
fn foo(x: int) { println!("{}", x); }
13+
fn foo(x: isize) { println!("{}", x); }
1414

1515
#[cfg(any(target_arch = "x86",
1616
target_arch = "x86_64",
1717
target_arch = "arm",
1818
target_arch = "aarch64"))]
1919
pub fn main() {
20-
let x: int;
20+
let x: isize;
2121
unsafe {
2222
asm!("mov $1, $0" : "r"(x) : "r"(5u)); //~ ERROR output operand constraint lacks '='
2323
}

branches/batch/src/test/compile-fail/asm-out-read-uninit.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010

1111
#![feature(asm)]
1212

13-
fn foo(x: int) { println!("{}", x); }
13+
fn foo(x: isize) { println!("{}", x); }
1414

1515
#[cfg(any(target_arch = "x86",
1616
target_arch = "x86_64",
1717
target_arch = "arm",
1818
target_arch = "aarch64"))]
1919
pub fn main() {
20-
let x: int;
20+
let x: isize;
2121
unsafe {
2222
asm!("mov $1, $0" : "=r"(x) : "r"(x)); //~ ERROR use of possibly uninitialized variable: `x`
2323
}

branches/batch/src/test/compile-fail/assign-imm-local-twice.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
fn test() {
12-
let v: int;
12+
let v: isize;
1313
v = 1; //~ NOTE prior assignment occurs here
1414
println!("v={}", v);
1515
v = 2; //~ ERROR re-assignment of immutable variable

branches/batch/src/test/compile-fail/assign-to-method.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
struct cat {
1212
meows : uint,
1313

14-
how_hungry : int,
14+
how_hungry : isize,
1515
}
1616

1717
impl cat {
1818
pub fn speak(&self) { self.meows += 1u; }
1919
}
2020

21-
fn cat(in_x : uint, in_y : int) -> cat {
21+
fn cat(in_x : uint, in_y : isize) -> cat {
2222
cat {
2323
meows: in_x,
2424
how_hungry: in_y

branches/batch/src/test/compile-fail/assoc-inherent.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
struct Foo;
1414

1515
impl Foo {
16-
type Bar = int; //~ERROR associated items are not allowed in inherent impls
16+
type Bar = isize; //~ERROR associated items are not allowed in inherent impls
1717
}
1818

1919
fn main() {}

branches/batch/src/test/compile-fail/associated-types-bound-failure.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// Test equality constraints on associated types in a where clause.
1212

1313
pub trait ToInt {
14-
fn to_int(&self) -> int;
14+
fn to_int(&self) -> isize;
1515
}
1616

1717
pub trait GetToInt
@@ -21,13 +21,13 @@ pub trait GetToInt
2121
fn get(&self) -> <Self as GetToInt>::R;
2222
}
2323

24-
fn foo<G>(g: G) -> int
24+
fn foo<G>(g: G) -> isize
2525
where G : GetToInt
2626
{
2727
ToInt::to_int(&g.get()) //~ ERROR not implemented
2828
}
2929

30-
fn bar<G : GetToInt>(g: G) -> int
30+
fn bar<G : GetToInt>(g: G) -> isize
3131
where G::R : ToInt
3232
{
3333
ToInt::to_int(&g.get()) // OK

branches/batch/src/test/compile-fail/associated-types-eq-2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pub trait Foo {
1818

1919
struct Bar;
2020

21-
impl Foo for int {
21+
impl Foo for isize {
2222
type A = uint;
2323
fn boo(&self) -> uint { 42 }
2424
}

branches/batch/src/test/compile-fail/associated-types-eq-3.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pub trait Foo {
1818

1919
struct Bar;
2020

21-
impl Foo for int {
21+
impl Foo for isize {
2222
type A = uint;
2323
fn boo(&self) -> uint {
2424
42

branches/batch/src/test/compile-fail/associated-types-eq-expr-path.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212

1313
trait Foo {
1414
type A;
15-
fn bar() -> int;
15+
fn bar() -> isize;
1616
}
1717

18-
impl Foo for int {
18+
impl Foo for isize {
1919
type A = uint;
20-
fn bar() -> int { 42 }
20+
fn bar() -> isize { 42 }
2121
}
2222

2323
pub fn main() {
24-
let x: int = Foo::<A=uint>::bar();
24+
let x: isize = Foo::<A=uint>::bar();
2525
//~^ERROR unexpected binding of associated item in expression path
2626
}

branches/batch/src/test/compile-fail/associated-types-eq-hr.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,43 +17,43 @@ pub trait TheTrait<T> {
1717
}
1818

1919
struct IntStruct {
20-
x: int
20+
x: isize
2121
}
2222

23-
impl<'a> TheTrait<&'a int> for IntStruct {
24-
type A = &'a int;
23+
impl<'a> TheTrait<&'a isize> for IntStruct {
24+
type A = &'a isize;
2525

26-
fn get(&self, t: &'a int) -> &'a int {
26+
fn get(&self, t: &'a isize) -> &'a isize {
2727
t
2828
}
2929
}
3030

3131
struct UintStruct {
32-
x: int
32+
x: isize
3333
}
3434

35-
impl<'a> TheTrait<&'a int> for UintStruct {
35+
impl<'a> TheTrait<&'a isize> for UintStruct {
3636
type A = &'a uint;
3737

38-
fn get(&self, t: &'a int) -> &'a uint {
38+
fn get(&self, t: &'a isize) -> &'a uint {
3939
panic!()
4040
}
4141
}
4242

4343
fn foo<T>()
44-
where T : for<'x> TheTrait<&'x int, A = &'x int>
44+
where T : for<'x> TheTrait<&'x isize, A = &'x isize>
4545
{
4646
// ok for IntStruct, but not UintStruct
4747
}
4848

4949
fn bar<T>()
50-
where T : for<'x> TheTrait<&'x int, A = &'x uint>
50+
where T : for<'x> TheTrait<&'x isize, A = &'x uint>
5151
{
5252
// ok for UintStruct, but not IntStruct
5353
}
5454

5555
fn baz<T>()
56-
where T : for<'x,'y> TheTrait<&'x int, A = &'y int>
56+
where T : for<'x,'y> TheTrait<&'x isize, A = &'y isize>
5757
{
5858
// not ok for either struct, due to the use of two lifetimes
5959
}

branches/batch/src/test/compile-fail/associated-types-incomplete-object.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub trait Foo {
1919

2020
struct Bar;
2121

22-
impl Foo for int {
22+
impl Foo for isize {
2323
type A = uint;
2424
type B = char;
2525
fn boo(&self) -> uint {

branches/batch/src/test/compile-fail/associated-types-invalid-trait-ref-issue-18865.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ trait Foo<T> {
1616
fn get_bar(&self) -> Self::Bar;
1717
}
1818

19-
fn f<T:Foo<int>>(t: &T) {
19+
fn f<T:Foo<isize>>(t: &T) {
2020
let u: <T as Foo<usize>>::Bar = t.get_bar();
2121
//~^ ERROR the trait `Foo<usize>` is not implemented for the type `T`
2222
}

branches/batch/src/test/compile-fail/associated-types-issue-17359.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ trait Trait {
1515
type Type;
1616
}
1717

18-
impl Trait for int {} //~ ERROR missing: `Type`
18+
impl Trait for isize {} //~ ERROR missing: `Type`
1919

2020
fn main() {}
2121

branches/batch/src/test/compile-fail/associated-types-no-suitable-bound.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ trait Get {
1414
}
1515

1616
struct Struct {
17-
x: int,
17+
x: isize,
1818
}
1919

2020
impl Struct {

branches/batch/src/test/compile-fail/associated-types-path-2.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pub trait Foo {
1414
type A;
1515
}
1616

17-
impl Foo for int {
17+
impl Foo for isize {
1818
type A = uint;
1919
}
2020

@@ -45,7 +45,7 @@ pub fn f1_uint_int() {
4545
}
4646

4747
pub fn f2_int() {
48-
let _: int = f2(2is);
48+
let _: isize = f2(2is);
4949
//~^ ERROR expected `isize`, found `usize`
5050
}
5151

branches/batch/src/test/compile-fail/associated-types-project-from-hrtb-explicit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub trait Foo<T> {
1717
fn get(&self, t: T) -> Self::A;
1818
}
1919

20-
fn foo2<I>(x: <I as for<'x> Foo<&'x int>>::A)
20+
fn foo2<I>(x: <I as for<'x> Foo<&'x isize>>::A)
2121
//~^ ERROR expected identifier, found keyword `for`
2222
//~| ERROR expected one of `::` or `>`
2323
{

branches/batch/src/test/compile-fail/associated-types-project-from-hrtb-in-fn-body.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ pub trait Foo<T> {
1717
fn get(&self, t: T) -> Self::A;
1818
}
1919

20-
fn foo<'a, I : for<'x> Foo<&'x int>>(
21-
x: <I as Foo<&'a int>>::A)
20+
fn foo<'a, I : for<'x> Foo<&'x isize>>(
21+
x: <I as Foo<&'a isize>>::A)
2222
{
2323
let y: I::A = x;
2424
}
2525

26-
fn bar<'a, 'b, I : for<'x> Foo<&'x int>>(
27-
x: <I as Foo<&'a int>>::A,
28-
y: <I as Foo<&'b int>>::A,
26+
fn bar<'a, 'b, I : for<'x> Foo<&'x isize>>(
27+
x: <I as Foo<&'a isize>>::A,
28+
y: <I as Foo<&'b isize>>::A,
2929
cond: bool)
3030
{
3131
// x and y here have two distinct lifetimes:

branches/batch/src/test/compile-fail/associated-types-project-from-hrtb-in-fn.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub trait Foo<T> {
1717
fn get(&self, t: T) -> Self::A;
1818
}
1919

20-
fn foo2<I : for<'x> Foo<&'x int>>(
20+
fn foo2<I : for<'x> Foo<&'x isize>>(
2121
x: I::A)
2222
//~^ ERROR cannot extract an associated type from a higher-ranked trait bound in this context
2323
{
@@ -28,15 +28,15 @@ fn foo2<I : for<'x> Foo<&'x int>>(
2828
// specifically for fn signatures.
2929
}
3030

31-
fn foo3<I : for<'x> Foo<&'x int>>(
32-
x: <I as Foo<&int>>::A)
31+
fn foo3<I : for<'x> Foo<&'x isize>>(
32+
x: <I as Foo<&isize>>::A)
3333
{
3434
// OK, in this case we spelled out the precise regions involved, though we left one of
3535
// them anonymous.
3636
}
3737

38-
fn foo4<'a, I : for<'x> Foo<&'x int>>(
39-
x: <I as Foo<&'a int>>::A)
38+
fn foo4<'a, I : for<'x> Foo<&'x isize>>(
39+
x: <I as Foo<&'a isize>>::A)
4040
{
4141
// OK, in this case we spelled out the precise regions involved.
4242
}

0 commit comments

Comments
 (0)