diff options
Diffstat (limited to 'crates/ra_hir/src/ids.rs')
-rw-r--r-- | crates/ra_hir/src/ids.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_hir/src/ids.rs b/crates/ra_hir/src/ids.rs index 6df037859..5b00330c6 100644 --- a/crates/ra_hir/src/ids.rs +++ b/crates/ra_hir/src/ids.rs | |||
@@ -22,7 +22,7 @@ pub struct HirInterner { | |||
22 | consts: LocationIntener<ItemLoc<ast::ConstDef>, ConstId>, | 22 | consts: LocationIntener<ItemLoc<ast::ConstDef>, ConstId>, |
23 | statics: LocationIntener<ItemLoc<ast::StaticDef>, StaticId>, | 23 | statics: LocationIntener<ItemLoc<ast::StaticDef>, StaticId>, |
24 | traits: LocationIntener<ItemLoc<ast::TraitDef>, TraitId>, | 24 | traits: LocationIntener<ItemLoc<ast::TraitDef>, TraitId>, |
25 | types: LocationIntener<ItemLoc<ast::TypeDef>, TypeId>, | 25 | types: LocationIntener<ItemLoc<ast::TypeAliasDef>, TypeId>, |
26 | } | 26 | } |
27 | 27 | ||
28 | impl HirInterner { | 28 | impl HirInterner { |
@@ -278,8 +278,8 @@ impl AstItemDef<ast::TraitDef> for TraitId { | |||
278 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] | 278 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] |
279 | pub struct TypeId(RawId); | 279 | pub struct TypeId(RawId); |
280 | impl_arena_id!(TypeId); | 280 | impl_arena_id!(TypeId); |
281 | impl AstItemDef<ast::TypeDef> for TypeId { | 281 | impl AstItemDef<ast::TypeAliasDef> for TypeId { |
282 | fn interner(interner: &HirInterner) -> &LocationIntener<ItemLoc<ast::TypeDef>, Self> { | 282 | fn interner(interner: &HirInterner) -> &LocationIntener<ItemLoc<ast::TypeAliasDef>, Self> { |
283 | &interner.types | 283 | &interner.types |
284 | } | 284 | } |
285 | } | 285 | } |