From d4c8310d059e76f28c81e1e404dfe79b982bc23b Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 8 Jan 2019 15:53:32 +0300 Subject: switch interner to use arena --- crates/ra_hir/src/ids.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crates/ra_hir/src') diff --git a/crates/ra_hir/src/ids.rs b/crates/ra_hir/src/ids.rs index 730a3e542..624ab808f 100644 --- a/crates/ra_hir/src/ids.rs +++ b/crates/ra_hir/src/ids.rs @@ -93,8 +93,8 @@ impl From for HirFileId { /// `MacroCallId` identifies a particular macro invocation, like /// `println!("Hello, {}", world)`. #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] -pub struct MacroCallId(u32); -ra_db::impl_numeric_id!(MacroCallId); +pub struct MacroCallId(RawId); +impl_arena_id!(MacroCallId); #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] pub struct MacroCallLoc { @@ -125,8 +125,8 @@ impl MacroCallLoc { /// Def's are a core concept of hir. A `Def` is an Item (function, module, etc) /// in a specific module. #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] -pub struct DefId(u32); -ra_db::impl_numeric_id!(DefId); +pub struct DefId(RawId); +impl_arena_id!(DefId); #[derive(Clone, Debug, PartialEq, Eq, Hash)] pub struct DefLoc { -- cgit v1.2.3