aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2019-01-08 12:53:55 +0000
committerbors[bot] <bors[bot]@users.noreply.github.com>2019-01-08 12:53:55 +0000
commit6ba4fa0bc77fddf11e4938c6d79e911a91054a45 (patch)
tree49ace1774d9ed6ebfa141af27368030fa4c3279d /crates/ra_hir
parent5603237c069c600963b8e25481af397b25e3b185 (diff)
parentd4c8310d059e76f28c81e1e404dfe79b982bc23b (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.rs8
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)]
96pub struct MacroCallId(u32); 96pub struct MacroCallId(RawId);
97ra_db::impl_numeric_id!(MacroCallId); 97impl_arena_id!(MacroCallId);
98 98
99#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] 99#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
100pub struct MacroCallLoc { 100pub 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)]
128pub struct DefId(u32); 128pub struct DefId(RawId);
129ra_db::impl_numeric_id!(DefId); 129impl_arena_id!(DefId);
130 130
131#[derive(Clone, Debug, PartialEq, Eq, Hash)] 131#[derive(Clone, Debug, PartialEq, Eq, Hash)]
132pub struct DefLoc { 132pub struct DefLoc {