From a87bec51485feb491f7b1b80c06a29d86ebaf681 Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Mon, 10 May 2021 16:35:06 +0200 Subject: Move `AttrId` back into `hir_def` --- crates/hir_expand/src/lib.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (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 80ab3aeee..57e08eeb0 100644 --- a/crates/hir_expand/src/lib.rs +++ b/crates/hir_expand/src/lib.rs @@ -293,12 +293,9 @@ pub struct MacroCallLoc { #[derive(Debug, Clone, PartialEq, Eq, Hash)] pub enum MacroCallKind { FnLike { ast_id: AstId, fragment: FragmentKind }, - Derive { ast_id: AstId, derive_name: String, derive_attr: AttrId }, + Derive { ast_id: AstId, derive_name: String, derive_attr_index: u32 }, } -#[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