diff options
Diffstat (limited to 'crates/ra_hir/src')
-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 { |