From 3fcdd1bcdf8a93769f74b7b4ca5ba043ad316e46 Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Thu, 8 Apr 2021 19:44:21 +0200 Subject: Add `AttrId` to track attribute sources --- crates/hir_expand/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crates/hir_expand/src/lib.rs') 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 { Derive { ast_id: AstId, derive_name: String }, } +#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] +pub struct AttrId(pub u32); + impl MacroCallKind { fn file_id(&self) -> HirFileId { match self { -- cgit v1.2.3