Skip to content

Commit 02cac96

Browse files
committed
Update tests
1 parent 9697d23 commit 02cac96

21 files changed

+54
-54
lines changed

crates/ra_hir_def/src/item_tree/tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,9 @@ fn smoke() {
228228
229229
top-level items:
230230
#[Attrs { entries: Some([Attr { path: ModPath { kind: Plain, segments: [Name(Text("attr_on_use"))] }, input: None }]) }]
231-
Import { path: ModPath { kind: Plain, segments: [Name(Text("a"))] }, alias: None, visibility: RawVisibilityId("pub(self)"), is_glob: false, is_prelude: false, ast_id: FileAstId::<ra_syntax::ast::generated::nodes::UseItem>(0) }
231+
Import { path: ModPath { kind: Plain, segments: [Name(Text("a"))] }, alias: None, visibility: RawVisibilityId("pub(self)"), is_glob: false, is_prelude: false, ast_id: FileAstId::<ra_syntax::ast::generated::nodes::Use>(0) }
232232
#[Attrs { entries: Some([Attr { path: ModPath { kind: Plain, segments: [Name(Text("attr_on_use"))] }, input: None }]) }]
233-
Import { path: ModPath { kind: Plain, segments: [Name(Text("b"))] }, alias: None, visibility: RawVisibilityId("pub(self)"), is_glob: true, is_prelude: false, ast_id: FileAstId::<ra_syntax::ast::generated::nodes::UseItem>(0) }
233+
Import { path: ModPath { kind: Plain, segments: [Name(Text("b"))] }, alias: None, visibility: RawVisibilityId("pub(self)"), is_glob: true, is_prelude: false, ast_id: FileAstId::<ra_syntax::ast::generated::nodes::Use>(0) }
234234
#[Attrs { entries: Some([Attr { path: ModPath { kind: Plain, segments: [Name(Text("ext_crate"))] }, input: None }]) }]
235235
ExternCrate { path: ModPath { kind: Plain, segments: [Name(Text("krate"))] }, alias: None, visibility: RawVisibilityId("pub(self)"), is_macro_use: false, ast_id: FileAstId::<ra_syntax::ast::generated::nodes::ExternCrate>(1) }
236236
#[Attrs { entries: Some([Attr { path: ModPath { kind: Plain, segments: [Name(Text("on_trait"))] }, input: None }]) }]

crates/ra_syntax/test_data/parser/err/0002_duplicate_shebang.rast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ [email protected]
66
77
88
9-
USE_ITEM@24..28
9+
USE@24..28
1010
1111
1212

crates/ra_syntax/test_data/parser/err/0004_use_path_bad_segment.rast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
2-
USE_ITEM@0..12
2+
USE@0..12
33
44
55

crates/ra_syntax/test_data/parser/err/0035_use_recover.rast

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
2-
USE_ITEM@0..13
2+
USE@0..13
33
44
55
@@ -14,10 +14,10 @@ [email protected]
1414
1515
1616
17-
USE_ITEM@14..17
17+
USE@14..17
1818
1919
20-
USE_ITEM@18..33
20+
USE@18..33
2121
2222
2323
@@ -31,7 +31,7 @@ [email protected]
3131
3232
3333
34-
USE_ITEM@34..37
34+
USE@34..37
3535
3636
3737

crates/ra_syntax/test_data/parser/err/0036_partial_use.rast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
2-
USE_ITEM@0..36
2+
USE@0..36
33
44
55

crates/ra_syntax/test_data/parser/err/0040_illegal_crate_kw_location.rast

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
2-
USE_ITEM@0..12
2+
USE@0..12
33
44
55
@@ -9,7 +9,7 @@ [email protected]
99
1010
1111
12-
USE_ITEM@13..54
12+
USE@13..54
1313
1414
1515
@@ -52,7 +52,7 @@ [email protected]
5252
5353
5454
55-
USE_ITEM@55..72
55+
USE@55..72
5656
5757
5858
@@ -66,7 +66,7 @@ [email protected]
6666
6767
6868
69-
USE_ITEM@73..97
69+
USE@73..97
7070
7171
7272

crates/ra_syntax/test_data/parser/err/0041_illegal_super_keyword_location.rast

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
2-
USE_ITEM@0..12
2+
USE@0..12
33
44
55
@@ -9,7 +9,7 @@ [email protected]
99
1010
1111
12-
USE_ITEM@13..26
12+
USE@13..26
1313
1414
1515
@@ -23,7 +23,7 @@ [email protected]
2323
2424
2525
26-
USE_ITEM@27..47
26+
USE@27..47
2727
2828
2929
@@ -41,7 +41,7 @@ [email protected]
4141
4242
4343
44-
USE_ITEM@48..66
44+
USE@48..66
4545
4646
4747

crates/ra_syntax/test_data/parser/err/0042_illegal_self_keyword_location.rast

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
2-
USE_ITEM@0..11
2+
USE@0..11
33
44
55
@@ -9,7 +9,7 @@ [email protected]
99
1010
1111
12-
USE_ITEM@12..24
12+
USE@12..24
1313
1414
1515

crates/ra_syntax/test_data/parser/inline/err/0015_empty_segment.rast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
2-
USE_ITEM@0..12
2+
USE@0..12
33
44
55

crates/ra_syntax/test_data/parser/inline/ok/0002_use_tree_list.rast

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
2-
USE_ITEM@0..58
2+
USE@0..58
33
44
55
@@ -51,7 +51,7 @@ [email protected]
5151
5252
[email protected] "// Rust 2018 (with a ..."
5353
54-
USE_ITEM@98..121
54+
USE@98..121
5555
5656
5757
@@ -77,7 +77,7 @@ [email protected]
7777
7878
[email protected] "// Rust 2015"
7979
80-
USE_ITEM@135..166
80+
USE@135..166
8181
8282
8383
@@ -104,7 +104,7 @@ [email protected]
104104
105105
[email protected] "// Rust 2015"
106106
107-
USE_ITEM@180..205
107+
USE@180..205
108108
109109
110110

crates/ra_syntax/test_data/parser/inline/ok/0020_use_star.rast

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
2-
USE_ITEM@0..6
2+
USE@0..6
33
44
55
66
77
88
9-
USE_ITEM@7..15
9+
USE@7..15
1010
1111
1212
1313
1414
1515
1616
17-
USE_ITEM@16..36
17+
USE@16..36
1818
1919
2020
@@ -35,7 +35,7 @@ [email protected]
3535
3636
3737
38-
USE_ITEM@37..59
38+
USE@37..59
3939
4040
4141

crates/ra_syntax/test_data/parser/inline/ok/0043_use_alias.rast

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
2-
USE_ITEM@0..28
2+
USE@0..28
33
44
55
@@ -20,7 +20,7 @@ [email protected]
2020
[email protected] "some_name"
2121
2222
23-
USE_ITEM@29..181
23+
USE@29..181
2424
2525
2626
@@ -121,7 +121,7 @@ [email protected]
121121
122122
123123
124-
USE_ITEM@182..197
124+
USE@182..197
125125
126126
127127

crates/ra_syntax/test_data/parser/inline/ok/0067_crate_path.rast

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
2-
USE_ITEM@0..15
2+
USE@0..15
33
44
55

crates/ra_syntax/test_data/parser/inline/ok/0069_use_tree_list_after_path.rast

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
2-
USE_ITEM@0..18
2+
USE@0..18
33
44
55
@@ -17,7 +17,7 @@ [email protected]
1717
1818
1919
20-
USE_ITEM@19..36
20+
USE@19..36
2121
2222
2323

crates/ra_syntax/test_data/parser/inline/ok/0110_use_path.rast

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
2-
USE_ITEM@0..17
2+
USE@0..17
33
44
55
@@ -12,7 +12,7 @@ [email protected]
1212
1313
[email protected] "// Rust 2018 - All fl ..."
1414
15-
USE_ITEM@46..61
15+
USE@46..61
1616
1717
1818
@@ -24,7 +24,7 @@ [email protected]
2424
2525
[email protected] "// Rust 2018 - Anchor ..."
2626
27-
USE_ITEM@92..124
27+
USE@92..124
2828
2929
3030

crates/ra_syntax/test_data/parser/ok/0009_use_item.rast

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
2-
USE_ITEM@0..8
2+
USE@0..8
33
44
55
@@ -9,7 +9,7 @@ [email protected]
99
1010
1111
12-
USE_ITEM@9..19
12+
USE@9..19
1313
1414
1515

crates/ra_syntax/test_data/parser/ok/0010_use_path_segments.rast

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
2-
USE_ITEM@0..20
2+
USE@0..20
33
44
55
@@ -20,7 +20,7 @@ [email protected]
2020
2121
2222
23-
USE_ITEM@21..39
23+
USE@21..39
2424
2525
2626

crates/ra_syntax/test_data/parser/ok/0013_use_path_self_super.rast

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
2-
USE_ITEM@0..14
2+
USE@0..14
33
44
55
@@ -13,7 +13,7 @@ [email protected]
1313
1414
1515
16-
USE_ITEM@15..37
16+
USE@15..37
1717
1818
1919

0 commit comments

Comments
 (0)