Skip to content

Commit 026e4e6

Browse files
committed
Update tests
1 parent 6cd2131 commit 026e4e6

File tree

4 files changed

+15
-11
lines changed

4 files changed

+15
-11
lines changed

crates/ra_syntax/src/ast/edit.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,12 @@ impl ast::UseTree {
317317
Some(it) => it,
318318
None => return self.clone(),
319319
};
320-
let use_tree =
321-
make::use_tree(suffix, self.use_tree_list(), self.rename(), self.star_token().is_some());
320+
let use_tree = make::use_tree(
321+
suffix,
322+
self.use_tree_list(),
323+
self.rename(),
324+
self.star_token().is_some(),
325+
);
322326
let nested = make::use_tree_list(iter::once(use_tree));
323327
return make::use_tree(prefix.clone(), Some(nested), None, false);
324328

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ [email protected]
1313
1414
1515
16-
ALIAS@15..27
16+
RENAME@15..27
1717
1818
1919
@@ -43,7 +43,7 @@ [email protected]
4343
4444
4545
46-
ALIAS@54..72
46+
RENAME@54..72
4747
4848
4949
@@ -61,7 +61,7 @@ [email protected]
6161
6262
6363
64-
ALIAS@91..108
64+
RENAME@91..108
6565
6666
6767
@@ -130,7 +130,7 @@ [email protected]
130130
131131
132132
133-
ALIAS@192..196
133+
RENAME@192..196
134134
135135
136136

crates/ra_syntax/test_data/parser/ok/0007_extern_crate.rast

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ [email protected]
1616
1717
1818
19-
ALIAS@35..41
19+
RENAME@35..41
2020
2121
2222
@@ -30,7 +30,7 @@ [email protected]
3030
3131
3232
33-
ALIAS@61..67
33+
RENAME@61..67
3434
3535
3636

crates/ra_syntax/test_data/parser/ok/0015_use_tree.rast

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ [email protected]
88
99
1010
11-
ALIAS@8..14
11+
RENAME@8..14
1212
1313
1414
@@ -32,7 +32,7 @@ [email protected]
3232
3333
3434
35-
ALIAS@28..32
35+
RENAME@28..32
3636
3737
3838
@@ -55,7 +55,7 @@ [email protected]
5555
5656
5757
58-
ALIAS@48..52
58+
RENAME@48..52
5959
6060
6161

0 commit comments

Comments
 (0)