Skip to content

Commit 081f35f

Browse files
committed
Update tests
1 parent 2984da6 commit 081f35f

33 files changed

+40
-40
lines changed

crates/ra_parser/src/grammar.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,12 @@ pub(crate) fn reparser(
149149
USE_TREE_LIST => items::use_tree_list,
150150
EXTERN_ITEM_LIST => items::extern_item_list,
151151
TOKEN_TREE if first_child? == T!['{'] => items::token_tree,
152-
ITEM_LIST => match parent? {
152+
ASSOC_ITEM_LIST => match parent? {
153153
IMPL_DEF => items::impl_item_list,
154154
TRAIT_DEF => items::trait_item_list,
155-
MODULE => items::mod_item_list,
156155
_ => return None,
157156
},
157+
ITEM_LIST => items::mod_item_list,
158158
_ => return None,
159159
};
160160
Some(res)

crates/ra_syntax/test_data/parser/err/0018_incomplete_fn.rast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ [email protected]
88
99
[email protected] "FnScopes"
1010
11-
ITEM_LIST@14..182
11+
ASSOC_ITEM_LIST@14..182
1212
1313
1414

crates/ra_syntax/test_data/parser/err/0026_imp_recovery.rast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ [email protected]
4141
4242
4343
44-
ITEM_LIST@35..37
44+
ASSOC_ITEM_LIST@35..37
4545
4646
4747

crates/ra_syntax/test_data/parser/err/0037_visibility_in_traits.rast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ [email protected]
1414
1515
1616
17-
ITEM_LIST@14..117
17+
ASSOC_ITEM_LIST@14..117
1818
1919
2020

crates/ra_syntax/test_data/parser/err/0043_default_const.rast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ [email protected]
55
66
77
8-
ITEM_LIST@8..38
8+
ASSOC_ITEM_LIST@8..38
99
1010
1111

crates/ra_syntax/test_data/parser/inline/err/0004_impl_type.rast

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ [email protected]
88
99
1010
11-
ITEM_LIST@10..12
11+
ASSOC_ITEM_LIST@10..12
1212
1313
1414
@@ -29,7 +29,7 @@ [email protected]
2929
3030
3131
32-
ITEM_LIST@31..33
32+
ASSOC_ITEM_LIST@31..33
3333
3434
3535
@@ -45,7 +45,7 @@ [email protected]
4545
4646
4747
48-
ITEM_LIST@52..54
48+
ASSOC_ITEM_LIST@52..54
4949
5050
5151
@@ -69,7 +69,7 @@ [email protected]
6969
7070
7171
72-
ITEM_LIST@84..86
72+
ASSOC_ITEM_LIST@84..86
7373
7474
7575

crates/ra_syntax/test_data/parser/inline/err/0014_default_fn_type.rast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ [email protected]
55
66
77
8-
ITEM_LIST@8..61
8+
ASSOC_ITEM_LIST@8..61
99
1010
1111

crates/ra_syntax/test_data/parser/inline/ok/0001_trait_item_list.rast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ [email protected]
88
99
1010
11-
ITEM_LIST@7..82
11+
ASSOC_ITEM_LIST@7..82
1212
1313
1414

crates/ra_syntax/test_data/parser/inline/ok/0006_self_param.rast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ [email protected]
88
99
1010
11-
ITEM_LIST@7..127
11+
ASSOC_ITEM_LIST@7..127
1212
1313
1414

crates/ra_syntax/test_data/parser/inline/ok/0016_unsafe_trait.rast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ [email protected]
77
88
99
10-
ITEM_LIST@15..17
10+
ASSOC_ITEM_LIST@15..17
1111
1212
1313

0 commit comments

Comments
 (0)