Skip to content

Commit a0f53b0

Browse files
pnkfelixnikomatsakis
authored andcommitted
Update graphviz tests to accommodate new isize/usize types and is/us suffixes.
1 parent b2e93e2 commit a0f53b0

File tree

27 files changed

+87
-87
lines changed

27 files changed

+87
-87
lines changed

src/test/run-make/graphviz-flowgraph/f01.rs

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

1111
pub fn lit_1() {
12-
1i;
12+
1is;
1313
}

src/test/run-make/graphviz-flowgraph/f02.dot-expected.dot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ digraph block {
22
N0[label="entry"];
33
N1[label="exit"];
44
N2[label="local _x"];
5-
N3[label="stmt let _x: int;"];
6-
N4[label="block { let _x: int; }"];
5+
N3[label="stmt let _x: isize;"];
6+
N4[label="block { let _x: isize; }"];
77
N0 -> N2;
88
N2 -> N3;
99
N3 -> N4;

src/test/run-make/graphviz-flowgraph/f02.rs

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

1111
pub fn decl_x_2() {
12-
let _x : int;
12+
let _x : isize;
1313
}

src/test/run-make/graphviz-flowgraph/f03.rs

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

1111
pub fn expr_add_3() {
12-
3i + 4;
12+
3is + 4;
1313
}

src/test/run-make/graphviz-flowgraph/f04.rs

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

1111
pub fn pat_id_4() {
12-
let _x = 4i;
12+
let _x = 4is;
1313
}

src/test/run-make/graphviz-flowgraph/f05.rs

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

1111
pub fn pat_tup_5() {
12-
let (_x, _y) = (5i, 55i);
12+
let (_x, _y) = (5is, 55is);
1313
}

src/test/run-make/graphviz-flowgraph/f06.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
struct S6 { val: int }
11+
struct S6 { val: isize }
1212
pub fn pat_struct_6() {
1313
let S6 { val: _x } = S6{ val: 6 };
1414
}

src/test/run-make/graphviz-flowgraph/f07.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
pub fn pat_vec_7() {
12-
match [7i, 77i, 777i, 7777i] {
12+
match [7is, 77is, 777is, 7777is] {
1313
[x, y, ..] => x + y
1414
};
1515
}

src/test/run-make/graphviz-flowgraph/f08.rs

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

1111
pub fn expr_if_onearm_8() {
12-
let x = 8i; let _y;
13-
if x > 88i {
14-
_y = 888i;
12+
let x = 8is; let _y;
13+
if x > 88is {
14+
_y = 888is;
1515
}
1616
}

src/test/run-make/graphviz-flowgraph/f10.rs

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

1111
pub fn expr_while_10() {
12-
let mut x = 10i;
13-
while x > 0i {
14-
x -= 1i;
12+
let mut x = 10is;
13+
while x > 0is {
14+
x -= 1is;
1515
}
1616
}

0 commit comments

Comments
 (0)