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

0 commit comments

Comments
 (0)