aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_expand
diff options
context:
space:
mode:
authorJonas Schievink <[email protected]>2021-04-08 18:44:21 +0100
committerJonas Schievink <[email protected]>2021-04-09 12:32:03 +0100
commit3fcdd1bcdf8a93769f74b7b4ca5ba043ad316e46 (patch)
tree4632994864f273657d838f8f6427e1257f63434a /crates/hir_expand
parent99ed68a109c9f7e0dc6a82ccb5bf854d60943957 (diff)
Add `AttrId` to track attribute sources
Diffstat (limited to 'crates/hir_expand')
-rw-r--r--crates/hir_expand/src/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/hir_expand/src/lib.rs b/crates/hir_expand/src/lib.rs
index a179102f0..8637abc6a 100644
--- a/crates/hir_expand/src/lib.rs
+++ b/crates/hir_expand/src/lib.rs
@@ -294,6 +294,9 @@ pub enum MacroCallKind {
294 Derive { ast_id: AstId<ast::Item>, derive_name: String }, 294 Derive { ast_id: AstId<ast::Item>, derive_name: String },
295} 295}
296 296
297#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
298pub struct AttrId(pub u32);
299
297impl MacroCallKind { 300impl MacroCallKind {
298 fn file_id(&self) -> HirFileId { 301 fn file_id(&self) -> HirFileId {
299 match self { 302 match self {