diff options
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 bc8d4f3a8..3db757778 100644 --- a/crates/ra_hir/src/ids.rs +++ b/crates/ra_hir/src/ids.rs | |||
@@ -96,8 +96,8 @@ impl From<MacroCallId> for HirFileId { | |||
96 | /// `MacroCallId` identifies a particular macro invocation, like | 96 | /// `MacroCallId` identifies a particular macro invocation, like |
97 | /// `println!("Hello, {}", world)`. | 97 | /// `println!("Hello, {}", world)`. |
98 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] | 98 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] |
99 | pub struct MacroCallId(u32); | 99 | pub struct MacroCallId(RawId); |
100 | ra_db::impl_numeric_id!(MacroCallId); | 100 | impl_arena_id!(MacroCallId); |
101 | 101 | ||
102 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] | 102 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] |
103 | pub struct MacroCallLoc { | 103 | pub struct MacroCallLoc { |
@@ -128,8 +128,8 @@ impl MacroCallLoc { | |||
128 | /// Def's are a core concept of hir. A `Def` is an Item (function, module, etc) | 128 | /// Def's are a core concept of hir. A `Def` is an Item (function, module, etc) |
129 | /// in a specific module. | 129 | /// in a specific module. |
130 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] | 130 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] |
131 | pub struct DefId(u32); | 131 | pub struct DefId(RawId); |
132 | ra_db::impl_numeric_id!(DefId); | 132 | impl_arena_id!(DefId); |
133 | 133 | ||
134 | #[derive(Clone, Debug, PartialEq, Eq, Hash)] | 134 | #[derive(Clone, Debug, PartialEq, Eq, Hash)] |
135 | pub struct DefLoc { | 135 | pub struct DefLoc { |