Skip to content

Commit fb28d48

Browse files
committed
Patch graphviz tests to account for the fact that nested items are not
listed (an improvement, I think).
1 parent a37317f commit fb28d48

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
digraph block {
22
N0[label="entry"];
33
N1[label="exit"];
4-
N2[label="stmt fn inner(x: isize) -> isize { x + x }"];
4+
N2[label="stmt "];
55
N3[label="expr inner"];
66
N4[label="expr inner"];
77
N5[label="expr 18"];
88
N6[label="expr inner(18)"];
99
N7[label="expr inner(inner(18))"];
1010
N8[label="stmt inner(inner(18));"];
11-
N9[label="block {\l fn inner(x: isize) -> isize { x + x }\l inner(inner(18));\l}\l"];
11+
N9[label="block { inner(inner(18)); }"];
1212
N0 -> N2;
1313
N2 -> N3;
1414
N3 -> N4;

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
digraph block {
22
N0[label="entry"];
33
N1[label="exit"];
4-
N2[label="stmt struct S19 {\l x: isize,\l}\l"];
5-
N3[label="stmt impl S19 {\l fn inner(self) -> S19 { S19{x: self.x + self.x,} }\l}\l"];
4+
N2[label="stmt "];
5+
N3[label="stmt "];
66
N4[label="expr 19"];
77
N5[label="expr S19{x: 19,}"];
88
N6[label="local s"];
@@ -11,7 +11,7 @@ digraph block {
1111
N9[label="expr s.inner()"];
1212
N10[label="expr s.inner().inner()"];
1313
N11[label="stmt s.inner().inner();"];
14-
N12[label="block {\l struct S19 {\l x: isize,\l }\l impl S19 {\l fn inner(self) -> S19 { S19{x: self.x + self.x,} }\l }\l let s = S19{x: 19,};\l s.inner().inner();\l}\l"];
14+
N12[label="block { let s = S19{x: 19,}; s.inner().inner(); }"];
1515
N0 -> N2;
1616
N2 -> N3;
1717
N3 -> N4;

0 commit comments

Comments
 (0)