Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-db/src/test_data/test_symbol_index_collection.txt')
| -rw-r--r-- | crates/ide-db/src/test_data/test_symbol_index_collection.txt | 225 |
1 files changed, 119 insertions, 106 deletions
diff --git a/crates/ide-db/src/test_data/test_symbol_index_collection.txt b/crates/ide-db/src/test_data/test_symbol_index_collection.txt index 973256c470..7692a7d61a 100644 --- a/crates/ide-db/src/test_data/test_symbol_index_collection.txt +++ b/crates/ide-db/src/test_data/test_symbol_index_collection.txt @@ -1,12 +1,8 @@ [ ( Module { - id: ModuleId { - krate: Crate( - Id(3000), - ), - block: None, - local_id: Idx::<ModuleData>(0), + id: ModuleIdLt { + [salsa id]: Id(3800), }, }, [ @@ -15,14 +11,14 @@ def: Variant( Variant { id: EnumVariantId( - 7800, + 7c00, ), }, ), loc: DeclarationLocation { hir_file_id: FileId( EditionedFileId( - Id(2000), + Id(3000), ), ), ptr: SyntaxNodePtr { @@ -43,20 +39,21 @@ is_assoc: true, is_import: false, do_not_complete: Yes, + _marker: PhantomData<&()>, }, FileSymbol { name: "Alias", def: TypeAlias( TypeAlias { id: TypeAliasId( - 6800, + 7000, ), }, ), loc: DeclarationLocation { hir_file_id: FileId( EditionedFileId( - Id(2000), + Id(3000), ), ), ptr: SyntaxNodePtr { @@ -75,20 +72,21 @@ is_assoc: false, is_import: false, do_not_complete: Yes, + _marker: PhantomData<&()>, }, FileSymbol { name: "B", def: Variant( Variant { id: EnumVariantId( - 7801, + 7c01, ), }, ), loc: DeclarationLocation { hir_file_id: FileId( EditionedFileId( - Id(2000), + Id(3000), ), ), ptr: SyntaxNodePtr { @@ -109,20 +107,21 @@ is_assoc: true, is_import: false, do_not_complete: Yes, + _marker: PhantomData<&()>, }, FileSymbol { name: "CONST", def: Const( Const { id: ConstId( - 6000, + 6800, ), }, ), loc: DeclarationLocation { hir_file_id: FileId( EditionedFileId( - Id(2000), + Id(3000), ), ), ptr: SyntaxNodePtr { @@ -141,20 +140,21 @@ is_assoc: false, is_import: false, do_not_complete: Yes, + _marker: PhantomData<&()>, }, FileSymbol { name: "CONST_WITH_INNER", def: Const( Const { id: ConstId( - 6002, + 6802, ), }, ), loc: DeclarationLocation { hir_file_id: FileId( EditionedFileId( - Id(2000), + Id(3000), ), ), ptr: SyntaxNodePtr { @@ -173,6 +173,7 @@ is_assoc: false, is_import: false, do_not_complete: Yes, + _marker: PhantomData<&()>, }, FileSymbol { name: "Enum", @@ -180,7 +181,7 @@ Enum( Enum { id: EnumId( - 4c00, + 5400, ), }, ), @@ -188,7 +189,7 @@ loc: DeclarationLocation { hir_file_id: FileId( EditionedFileId( - Id(2000), + Id(3000), ), ), ptr: SyntaxNodePtr { @@ -207,6 +208,7 @@ is_assoc: false, is_import: false, do_not_complete: Yes, + _marker: PhantomData<&()>, }, FileSymbol { name: "ItemLikeMacro", @@ -214,7 +216,7 @@ Macro { id: Macro2Id( Macro2Id( - 4800, + 5000, ), ), }, @@ -222,7 +224,7 @@ loc: DeclarationLocation { hir_file_id: FileId( EditionedFileId( - Id(2000), + Id(3000), ), ), ptr: SyntaxNodePtr { @@ -241,6 +243,7 @@ is_assoc: false, is_import: true, do_not_complete: Yes, + _marker: PhantomData<&()>, }, FileSymbol { name: "Macro", @@ -248,7 +251,7 @@ Macro { id: Macro2Id( Macro2Id( - 4800, + 5000, ), ), }, @@ -256,7 +259,7 @@ loc: DeclarationLocation { hir_file_id: FileId( EditionedFileId( - Id(2000), + Id(3000), ), ), ptr: SyntaxNodePtr { @@ -275,20 +278,21 @@ is_assoc: false, is_import: false, do_not_complete: Yes, + _marker: PhantomData<&()>, }, FileSymbol { name: "STATIC", def: Static( Static { id: StaticId( - 6400, + 6c00, ), }, ), loc: DeclarationLocation { hir_file_id: FileId( EditionedFileId( - Id(2000), + Id(3000), ), ), ptr: SyntaxNodePtr { @@ -307,6 +311,7 @@ is_assoc: false, is_import: false, do_not_complete: Yes, + _marker: PhantomData<&()>, }, FileSymbol { name: "Struct", @@ -314,7 +319,7 @@ Struct( Struct { id: StructId( - 4401, + 4c01, ), }, ), @@ -322,7 +327,7 @@ loc: DeclarationLocation { hir_file_id: FileId( EditionedFileId( - Id(2000), + Id(3000), ), ), ptr: SyntaxNodePtr { @@ -341,6 +346,7 @@ is_assoc: false, is_import: false, do_not_complete: Yes, + _marker: PhantomData<&()>, }, FileSymbol { name: "StructFromMacro", @@ -348,7 +354,7 @@ Struct( Struct { id: StructId( - 4400, + 4c00, ), }, ), @@ -356,7 +362,7 @@ loc: DeclarationLocation { hir_file_id: MacroFile( MacroCallId( - Id(3800), + Id(4400), ), ), ptr: SyntaxNodePtr { @@ -375,6 +381,7 @@ is_assoc: false, is_import: false, do_not_complete: Yes, + _marker: PhantomData<&()>, }, FileSymbol { name: "StructInFn", @@ -382,7 +389,7 @@ Struct( Struct { id: StructId( - 4405, + 4c05, ), }, ), @@ -390,7 +397,7 @@ loc: DeclarationLocation { hir_file_id: FileId( EditionedFileId( - Id(2000), + Id(3000), ), ), ptr: SyntaxNodePtr { @@ -411,6 +418,7 @@ is_assoc: false, is_import: false, do_not_complete: Yes, + _marker: PhantomData<&()>, }, FileSymbol { name: "StructInNamedConst", @@ -418,7 +426,7 @@ Struct( Struct { id: StructId( - 4406, + 4c06, ), }, ), @@ -426,7 +434,7 @@ loc: DeclarationLocation { hir_file_id: FileId( EditionedFileId( - Id(2000), + Id(3000), ), ), ptr: SyntaxNodePtr { @@ -447,6 +455,7 @@ is_assoc: false, is_import: false, do_not_complete: Yes, + _marker: PhantomData<&()>, }, FileSymbol { name: "StructInUnnamedConst", @@ -454,7 +463,7 @@ Struct( Struct { id: StructId( - 4407, + 4c07, ), }, ), @@ -462,7 +471,7 @@ loc: DeclarationLocation { hir_file_id: FileId( EditionedFileId( - Id(2000), + Id(3000), ), ), ptr: SyntaxNodePtr { @@ -481,6 +490,7 @@ is_assoc: false, is_import: false, do_not_complete: Yes, + _marker: PhantomData<&()>, }, FileSymbol { name: "StructT", @@ -488,7 +498,7 @@ Struct( Struct { id: StructId( - 4402, + 4c02, ), }, ), @@ -496,7 +506,7 @@ loc: DeclarationLocation { hir_file_id: FileId( EditionedFileId( - Id(2000), + Id(3000), ), ), ptr: SyntaxNodePtr { @@ -515,20 +525,21 @@ is_assoc: false, is_import: false, do_not_complete: Yes, + _marker: PhantomData<&()>, }, FileSymbol { name: "Trait", def: Trait( Trait { id: TraitId( - 5800, + 6000, ), }, ), loc: DeclarationLocation { hir_file_id: FileId( EditionedFileId( - Id(2000), + Id(3000), ), ), ptr: SyntaxNodePtr { @@ -547,6 +558,7 @@ is_assoc: false, is_import: false, do_not_complete: Yes, + _marker: PhantomData<&()>, }, FileSymbol { name: "Trait", @@ -554,7 +566,7 @@ Macro { id: Macro2Id( Macro2Id( - 4800, + 5000, ), ), }, @@ -562,7 +574,7 @@ loc: DeclarationLocation { hir_file_id: FileId( EditionedFileId( - Id(2000), + Id(3000), ), ), ptr: SyntaxNodePtr { @@ -581,6 +593,7 @@ is_assoc: false, is_import: true, do_not_complete: Yes, + _marker: PhantomData<&()>, }, FileSymbol { name: "Union", @@ -588,7 +601,7 @@ Union( Union { id: UnionId( - 5000, + 5800, ), }, ), @@ -596,7 +609,7 @@ loc: DeclarationLocation { hir_file_id: FileId( EditionedFileId( - Id(2000), + Id(3000), ), ), ptr: SyntaxNodePtr { @@ -615,24 +628,21 @@ is_assoc: false, is_import: false, do_not_complete: Yes, + _marker: PhantomData<&()>, }, FileSymbol { name: "a_mod", def: Module( Module { - id: ModuleId { - krate: Crate( - Id(3000), - ), - block: None, - local_id: Idx::<ModuleData>(1), + id: ModuleIdLt { + [salsa id]: Id(3801), }, }, ), loc: DeclarationLocation { hir_file_id: FileId( EditionedFileId( - Id(2000), + Id(3000), ), ), ptr: SyntaxNodePtr { @@ -651,24 +661,21 @@ is_assoc: false, is_import: false, do_not_complete: Yes, + _marker: PhantomData<&()>, }, FileSymbol { name: "b_mod", def: Module( Module { - id: ModuleId { - krate: Crate( - Id(3000), - ), - block: None, - local_id: Idx::<ModuleData>(2), + id: ModuleIdLt { + [salsa id]: Id(3802), }, }, ), loc: DeclarationLocation { hir_file_id: FileId( EditionedFileId( - Id(2000), + Id(3000), ), ), ptr: SyntaxNodePtr { @@ -687,6 +694,7 @@ is_assoc: false, is_import: false, do_not_complete: Yes, + _marker: PhantomData<&()>, }, FileSymbol { name: "define_struct", @@ -694,7 +702,7 @@ Macro { id: MacroRulesId( MacroRulesId( - 3401, + 4001, ), ), }, @@ -702,7 +710,7 @@ loc: DeclarationLocation { hir_file_id: FileId( EditionedFileId( - Id(2000), + Id(3000), ), ), ptr: SyntaxNodePtr { @@ -721,20 +729,21 @@ is_assoc: false, is_import: false, do_not_complete: Yes, + _marker: PhantomData<&()>, }, FileSymbol { name: "generic_impl_fn", def: Function( - Function { - id: FunctionId( - 5c02, + FunctionId( + FunctionId( + 6402, ), - }, + ), ), loc: DeclarationLocation { hir_file_id: FileId( EditionedFileId( - Id(2000), + Id(3000), ), ), ptr: SyntaxNodePtr { @@ -755,20 +764,21 @@ is_assoc: true, is_import: false, do_not_complete: Yes, + _marker: PhantomData<&()>, }, FileSymbol { name: "impl_fn", def: Function( - Function { - id: FunctionId( - 5c01, + FunctionId( + FunctionId( + 6401, ), - }, + ), ), loc: DeclarationLocation { hir_file_id: FileId( EditionedFileId( - Id(2000), + Id(3000), ), ), ptr: SyntaxNodePtr { @@ -789,6 +799,7 @@ is_assoc: true, is_import: false, do_not_complete: Yes, + _marker: PhantomData<&()>, }, FileSymbol { name: "macro_rules_macro", @@ -796,7 +807,7 @@ Macro { id: MacroRulesId( MacroRulesId( - 3400, + 4000, ), ), }, @@ -804,7 +815,7 @@ loc: DeclarationLocation { hir_file_id: FileId( EditionedFileId( - Id(2000), + Id(3000), ), ), ptr: SyntaxNodePtr { @@ -823,20 +834,21 @@ is_assoc: false, is_import: false, do_not_complete: Yes, + _marker: PhantomData<&()>, }, FileSymbol { name: "main", def: Function( - Function { - id: FunctionId( - 5c00, + FunctionId( + FunctionId( + 6400, ), - }, + ), ), loc: DeclarationLocation { hir_file_id: FileId( EditionedFileId( - Id(2000), + Id(3000), ), ), ptr: SyntaxNodePtr { @@ -855,6 +867,7 @@ is_assoc: false, is_import: false, do_not_complete: Yes, + _marker: PhantomData<&()>, }, FileSymbol { name: "really_define_struct", @@ -862,7 +875,7 @@ Macro { id: MacroRulesId( MacroRulesId( - 3401, + 4001, ), ), }, @@ -870,7 +883,7 @@ loc: DeclarationLocation { hir_file_id: FileId( EditionedFileId( - Id(2000), + Id(3000), ), ), ptr: SyntaxNodePtr { @@ -889,20 +902,21 @@ is_assoc: false, is_import: true, do_not_complete: Yes, + _marker: PhantomData<&()>, }, FileSymbol { name: "trait_fn", def: Function( - Function { - id: FunctionId( - 5c03, + FunctionId( + FunctionId( + 6403, ), - }, + ), ), loc: DeclarationLocation { hir_file_id: FileId( EditionedFileId( - Id(2000), + Id(3000), ), ), ptr: SyntaxNodePtr { @@ -923,17 +937,14 @@ is_assoc: true, is_import: false, do_not_complete: Yes, + _marker: PhantomData<&()>, }, ], ), ( Module { - id: ModuleId { - krate: Crate( - Id(3000), - ), - block: None, - local_id: Idx::<ModuleData>(1), + id: ModuleIdLt { + [salsa id]: Id(3801), }, }, [ @@ -943,7 +954,7 @@ Struct( Struct { id: StructId( - 4403, + 4c03, ), }, ), @@ -951,7 +962,7 @@ loc: DeclarationLocation { hir_file_id: FileId( EditionedFileId( - Id(2000), + Id(3000), ), ), ptr: SyntaxNodePtr { @@ -970,17 +981,14 @@ is_assoc: false, is_import: false, do_not_complete: Yes, + _marker: PhantomData<&()>, }, ], ), ( Module { - id: ModuleId { - krate: Crate( - Id(3000), - ), - block: None, - local_id: Idx::<ModuleData>(2), + id: ModuleIdLt { + [salsa id]: Id(3802), }, }, [ @@ -989,14 +997,14 @@ def: Trait( Trait { id: TraitId( - 5800, + 6000, ), }, ), loc: DeclarationLocation { hir_file_id: FileId( EditionedFileId( - Id(2001), + Id(3001), ), ), ptr: SyntaxNodePtr { @@ -1015,6 +1023,7 @@ is_assoc: false, is_import: true, do_not_complete: Yes, + _marker: PhantomData<&()>, }, FileSymbol { name: "IsThisJustATrait", @@ -1022,7 +1031,7 @@ Macro { id: Macro2Id( Macro2Id( - 4800, + 5000, ), ), }, @@ -1030,7 +1039,7 @@ loc: DeclarationLocation { hir_file_id: FileId( EditionedFileId( - Id(2001), + Id(3001), ), ), ptr: SyntaxNodePtr { @@ -1049,6 +1058,7 @@ is_assoc: false, is_import: true, do_not_complete: Yes, + _marker: PhantomData<&()>, }, FileSymbol { name: "StructInModB", @@ -1056,7 +1066,7 @@ Struct( Struct { id: StructId( - 4404, + 4c04, ), }, ), @@ -1064,7 +1074,7 @@ loc: DeclarationLocation { hir_file_id: FileId( EditionedFileId( - Id(2001), + Id(3001), ), ), ptr: SyntaxNodePtr { @@ -1083,6 +1093,7 @@ is_assoc: false, is_import: false, do_not_complete: Yes, + _marker: PhantomData<&()>, }, FileSymbol { name: "SuperItemLikeMacro", @@ -1090,7 +1101,7 @@ Macro { id: Macro2Id( Macro2Id( - 4800, + 5000, ), ), }, @@ -1098,7 +1109,7 @@ loc: DeclarationLocation { hir_file_id: FileId( EditionedFileId( - Id(2001), + Id(3001), ), ), ptr: SyntaxNodePtr { @@ -1117,6 +1128,7 @@ is_assoc: false, is_import: true, do_not_complete: Yes, + _marker: PhantomData<&()>, }, FileSymbol { name: "ThisStruct", @@ -1124,7 +1136,7 @@ Struct( Struct { id: StructId( - 4404, + 4c04, ), }, ), @@ -1132,7 +1144,7 @@ loc: DeclarationLocation { hir_file_id: FileId( EditionedFileId( - Id(2001), + Id(3001), ), ), ptr: SyntaxNodePtr { @@ -1151,6 +1163,7 @@ is_assoc: false, is_import: true, do_not_complete: Yes, + _marker: PhantomData<&()>, }, ], ), |