From 96313283cd6cb7732ad4f6498f938dcd428d1864 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 30 Jul 2020 12:33:05 +0200 Subject: [PATCH] Update tests --- crates/ra_hir_def/src/item_tree/tests.rs | 2 +- .../test_data/parser/inline/ok/0060_extern_crate.rast | 2 +- crates/ra_syntax/test_data/parser/ok/0007_extern_crate.rast | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/ra_hir_def/src/item_tree/tests.rs b/crates/ra_hir_def/src/item_tree/tests.rs index a6057ceab5..68be1cb40c 100644 --- a/crates/ra_hir_def/src/item_tree/tests.rs +++ b/crates/ra_hir_def/src/item_tree/tests.rs @@ -232,7 +232,7 @@ fn smoke() { #[Attrs { entries: Some([Attr { path: ModPath { kind: Plain, segments: [Name(Text("attr_on_use"))] }, input: None }]) }] Import { path: ModPath { kind: Plain, segments: [Name(Text("b"))] }, alias: None, visibility: RawVisibilityId("pub(self)"), is_glob: true, is_prelude: false, ast_id: FileAstId::(0) } #[Attrs { entries: Some([Attr { path: ModPath { kind: Plain, segments: [Name(Text("ext_crate"))] }, input: None }]) }] - ExternCrate { path: ModPath { kind: Plain, segments: [Name(Text("krate"))] }, alias: None, visibility: RawVisibilityId("pub(self)"), is_macro_use: false, ast_id: FileAstId::(1) } + ExternCrate { path: ModPath { kind: Plain, segments: [Name(Text("krate"))] }, alias: None, visibility: RawVisibilityId("pub(self)"), is_macro_use: false, ast_id: FileAstId::(1) } #[Attrs { entries: Some([Attr { path: ModPath { kind: Plain, segments: [Name(Text("on_trait"))] }, input: None }]) }] Trait { name: Name(Text("Tr")), visibility: RawVisibilityId("pub(self)"), generic_params: GenericParamsId(0), auto: false, items: [TypeAlias(Idx::(0)), Const(Idx::(0)), Function(Idx::(0)), Function(Idx::(1))], ast_id: FileAstId::(2) } > #[Attrs { entries: Some([Attr { path: ModPath { kind: Plain, segments: [Name(Text("assoc_ty"))] }, input: None }]) }] diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0060_extern_crate.rast b/crates/ra_syntax/test_data/parser/inline/ok/0060_extern_crate.rast index d06fc0be51..25e1777d1a 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0060_extern_crate.rast +++ b/crates/ra_syntax/test_data/parser/inline/ok/0060_extern_crate.rast @@ -1,5 +1,5 @@ SOURCE_FILE@0..18 - EXTERN_CRATE_ITEM@0..17 + EXTERN_CRATE@0..17 EXTERN_KW@0..6 "extern" WHITESPACE@6..7 " " CRATE_KW@7..12 "crate" diff --git a/crates/ra_syntax/test_data/parser/ok/0007_extern_crate.rast b/crates/ra_syntax/test_data/parser/ok/0007_extern_crate.rast index 948c4ddb37..594c2f8f20 100644 --- a/crates/ra_syntax/test_data/parser/ok/0007_extern_crate.rast +++ b/crates/ra_syntax/test_data/parser/ok/0007_extern_crate.rast @@ -1,5 +1,5 @@ SOURCE_FILE@0..69 - EXTERN_CRATE_ITEM@0..17 + EXTERN_CRATE@0..17 EXTERN_KW@0..6 "extern" WHITESPACE@6..7 " " CRATE_KW@7..12 "crate" @@ -8,7 +8,7 @@ SOURCE_FILE@0..69 IDENT@13..16 "foo" SEMICOLON@16..17 ";" WHITESPACE@17..18 "\n" - EXTERN_CRATE_ITEM@18..42 + EXTERN_CRATE@18..42 EXTERN_KW@18..24 "extern" WHITESPACE@24..25 " " CRATE_KW@25..30 "crate" @@ -23,7 +23,7 @@ SOURCE_FILE@0..69 IDENT@38..41 "bar" SEMICOLON@41..42 ";" WHITESPACE@42..43 "\n" - EXTERN_CRATE_ITEM@43..68 + EXTERN_CRATE@43..68 EXTERN_KW@43..49 "extern" WHITESPACE@49..50 " " CRATE_KW@50..55 "crate"