mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 20:43:21 +00:00
Update tests
This commit is contained in:
parent
d032f872b6
commit
96313283cd
3 changed files with 5 additions and 5 deletions
|
@ -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::<ra_syntax::ast::generated::nodes::UseItem>(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::<ra_syntax::ast::generated::nodes::ExternCrateItem>(1) }
|
||||
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) }
|
||||
#[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::<TypeAlias>(0)), Const(Idx::<Const>(0)), Function(Idx::<Function>(0)), Function(Idx::<Function>(1))], ast_id: FileAstId::<ra_syntax::ast::generated::nodes::TraitDef>(2) }
|
||||
> #[Attrs { entries: Some([Attr { path: ModPath { kind: Plain, segments: [Name(Text("assoc_ty"))] }, input: None }]) }]
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue