aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir/src')
-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 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)]
99pub struct MacroCallId(u32); 99pub struct MacroCallId(RawId);
100ra_db::impl_numeric_id!(MacroCallId); 100impl_arena_id!(MacroCallId);
101 101
102#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] 102#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
103pub struct MacroCallLoc { 103pub 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)]
131pub struct DefId(u32); 131pub struct DefId(RawId);
132ra_db::impl_numeric_id!(DefId); 132impl_arena_id!(DefId);
133 133
134#[derive(Clone, Debug, PartialEq, Eq, Hash)] 134#[derive(Clone, Debug, PartialEq, Eq, Hash)]
135pub struct DefLoc { 135pub struct DefLoc {