Skip to content

Commit fc624e4

Browse files
committed
Update Node IDs for new compiler version
We really should make this test more robust so we don't have to update node ids when the AST changes slightly.
1 parent 4202476 commit fc624e4

File tree

1 file changed

+39
-39
lines changed

1 file changed

+39
-39
lines changed

c2rust-refactor/scripts/test_upgrade_ptr_to_ref.lua

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -2,73 +2,73 @@ require "upgrade_ptr_to_ref"
22

33
node_id_cfgs = {
44
-- ten_mul
5-
[26] = ConvCfg.new{"ref"},
6-
[35] = ConvCfg.new{"ref"},
5+
[25] = ConvCfg.new{"ref"},
6+
[34] = ConvCfg.new{"ref"},
77
-- struct_ptr
8-
[77] = ConvCfg.new{"ref"},
9-
[87] = ConvCfg.new{"slice", mutability="immut"},
8+
[76] = ConvCfg.new{"ref"},
9+
[86] = ConvCfg.new{"slice", mutability="immut"},
1010
-- Ptrs
11-
[130] = ConvCfg.new{"ref", lifetime="r"},
12-
[134] = ConvCfg.new{"ref", lifetime="r"},
13-
[138] = ConvCfg.new{"slice", lifetime="s"},
14-
[142] = ConvCfg.new{"slice", lifetime="s"},
15-
[146] = ConvCfg.new{"opt_box"},
11+
[129] = ConvCfg.new{"ref", lifetime="r"},
12+
[133] = ConvCfg.new{"ref", lifetime="r"},
13+
[137] = ConvCfg.new{"slice", lifetime="s"},
14+
[141] = ConvCfg.new{"slice", lifetime="s"},
15+
[145] = ConvCfg.new{"opt_box"},
1616
-- SizedData
17-
[151] = ConvCfg.new{"opt_box_slice"},
17+
[150] = ConvCfg.new{"opt_box_slice"},
1818
-- init_buf
19-
[159] = ConvCfg.new{"ref"},
20-
[167] = ConvCfg.new{"opt_box_slice"},
19+
[158] = ConvCfg.new{"ref"},
20+
[166] = ConvCfg.new{"opt_box_slice"},
2121
-- init_buf2
22-
[221] = ConvCfg.new{"ref"},
23-
[229] = ConvCfg.new{"box_slice"},
22+
[220] = ConvCfg.new{"ref"},
23+
[228] = ConvCfg.new{"box_slice"},
2424
-- destroy_buf
25-
[288] = ConvCfg.new{"ref"},
25+
[287] = ConvCfg.new{"ref"},
2626
-- explicit_lifetimes
27-
[326] = ConvCfg.new{"ref", lifetime="a"},
27+
[325] = ConvCfg.new{"ref", lifetime="a"},
2828
-- HeapItem
29-
[333] = ConvCfg.new{"box"},
30-
[337] = ConvCfg.new{"opt_box"},
29+
[332] = ConvCfg.new{"box"},
30+
[336] = ConvCfg.new{"opt_box"},
3131
-- init_opt_item
32-
[342] = ConvCfg.new{"ref"},
33-
[348] = ConvCfg.new{"box"},
32+
[341] = ConvCfg.new{"ref"},
33+
[347] = ConvCfg.new{"box"},
3434
-- init_opt_item2
35-
[423] = ConvCfg.new{"ref"},
36-
[429] = ConvCfg.new{"opt_box"},
35+
[422] = ConvCfg.new{"ref"},
36+
[428] = ConvCfg.new{"opt_box"},
3737
-- HTab
38-
[529] = ConvCfg.new{"opt_box_slice"},
38+
[528] = ConvCfg.new{"opt_box_slice"},
3939
-- HashHDR
40-
[540] = ConvCfg.new{"array"},
41-
[549] = ConvCfg.new{"array"},
40+
[539] = ConvCfg.new{"array"},
41+
[548] = ConvCfg.new{"array"},
4242
-- bm
43-
[556] = ConvCfg.new{"ref"},
44-
[580] = ConvCfg.new{"box_slice"},
43+
[555] = ConvCfg.new{"ref"},
44+
[579] = ConvCfg.new{"box_slice"},
4545
-- byteswap
46-
[790] = ConvCfg.new{"ref"},
47-
[795] = ConvCfg.new{"ref"},
48-
[1909] = ConvCfg.new{"byteswap", 811, 829},
46+
[789] = ConvCfg.new{"ref"},
47+
[794] = ConvCfg.new{"ref"},
48+
[1909] = ConvCfg.new{"byteswap", 810, 828},
4949
[1910] = ConvCfg.new{"del"},
5050
[1911] = ConvCfg.new{"del"},
5151
[1912] = ConvCfg.new{"del"},
5252
[1901] = ConvCfg.new{"del"},
53-
[1902] = ConvCfg.new{"byteswap", 1035, 1063},
53+
[1902] = ConvCfg.new{"byteswap", 1034, 1062},
5454
[1903] = ConvCfg.new{"del"},
5555
[1904] = ConvCfg.new{"del"},
5656
[1905] = ConvCfg.new{"del"},
57-
[1906] = ConvCfg.new{"byteswap", 1263, 1291},
57+
[1906] = ConvCfg.new{"byteswap", 1262, 1290},
5858
-- byteswap2
59-
[1312] = ConvCfg.new{"ref"},
60-
[1318] = ConvCfg.new{"box"}, -- FIXME: not a box
59+
[1311] = ConvCfg.new{"ref"},
60+
[1317] = ConvCfg.new{"box"}, -- FIXME: not a box
6161
[1917] = ConvCfg.new{"del"},
6262
[1918] = ConvCfg.new{"del"},
6363
[1919] = ConvCfg.new{"del"},
64-
[1920] = ConvCfg.new{"byteswap", 1421, 1421},
64+
[1920] = ConvCfg.new{"byteswap", 1420, 1420},
6565
[1921] = ConvCfg.new{"del"},
6666
-- _category, Category, categories, bisearch_cat
67-
[1535] = ConvCfg.new{"slice"},
67+
[1536] = ConvCfg.new{"slice"},
6868
-- opt_params
69-
[1728] = ConvCfg.new{"opt_ref"},
70-
[1733] = ConvCfg.new{"opt_ref", mutability="immut"},
71-
[1738] = ConvCfg.new{"opt_slice"},
69+
[1729] = ConvCfg.new{"opt_ref"},
70+
[1734] = ConvCfg.new{"opt_ref", mutability="immut"},
71+
[1739] = ConvCfg.new{"opt_slice"},
7272
}
7373

7474
run_ptr_upgrades(node_id_cfgs)

0 commit comments

Comments
 (0)