diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-01-08 12:53:55 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2019-01-08 12:53:55 +0000 |
commit | 6ba4fa0bc77fddf11e4938c6d79e911a91054a45 (patch) | |
tree | 49ace1774d9ed6ebfa141af27368030fa4c3279d /crates/ra_hir | |
parent | 5603237c069c600963b8e25481af397b25e3b185 (diff) | |
parent | d4c8310d059e76f28c81e1e404dfe79b982bc23b (diff) |
Merge #457
457: switch interner to use arena r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_hir')
-rw-r--r-- | crates/ra_hir/src/ids.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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<MacroCallId> for HirFileId { | |||
93 | /// `MacroCallId` identifies a particular macro invocation, like | 93 | /// `MacroCallId` identifies a particular macro invocation, like |
94 | /// `println!("Hello, {}", world)`. | 94 | /// `println!("Hello, {}", world)`. |
95 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] | 95 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] |
96 | pub struct MacroCallId(u32); | 96 | pub struct MacroCallId(RawId); |
97 | ra_db::impl_numeric_id!(MacroCallId); | 97 | impl_arena_id!(MacroCallId); |
98 | 98 | ||
99 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] | 99 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] |
100 | pub struct MacroCallLoc { | 100 | pub struct MacroCallLoc { |
@@ -125,8 +125,8 @@ impl MacroCallLoc { | |||
125 | /// Def's are a core concept of hir. A `Def` is an Item (function, module, etc) | 125 | /// Def's are a core concept of hir. A `Def` is an Item (function, module, etc) |
126 | /// in a specific module. | 126 | /// in a specific module. |
127 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] | 127 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] |
128 | pub struct DefId(u32); | 128 | pub struct DefId(RawId); |
129 | ra_db::impl_numeric_id!(DefId); | 129 | impl_arena_id!(DefId); |
130 | 130 | ||
131 | #[derive(Clone, Debug, PartialEq, Eq, Hash)] | 131 | #[derive(Clone, Debug, PartialEq, Eq, Hash)] |
132 | pub struct DefLoc { | 132 | pub struct DefLoc { |