diff options
author | Jonas Schievink <[email protected]> | 2021-04-08 18:44:21 +0100 |
---|---|---|
committer | Jonas Schievink <[email protected]> | 2021-04-09 12:32:03 +0100 |
commit | 3fcdd1bcdf8a93769f74b7b4ca5ba043ad316e46 (patch) | |
tree | 4632994864f273657d838f8f6427e1257f63434a /crates/hir_expand | |
parent | 99ed68a109c9f7e0dc6a82ccb5bf854d60943957 (diff) |
Add `AttrId` to track attribute sources
Diffstat (limited to 'crates/hir_expand')
-rw-r--r-- | crates/hir_expand/src/lib.rs | 3 |
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)] | ||
298 | pub struct AttrId(pub u32); | ||
299 | |||
297 | impl MacroCallKind { | 300 | impl MacroCallKind { |
298 | fn file_id(&self) -> HirFileId { | 301 | fn file_id(&self) -> HirFileId { |
299 | match self { | 302 | match self { |