diff options
Diffstat (limited to 'crates/hir_def/src/attr.rs')
-rw-r--r-- | crates/hir_def/src/attr.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crates/hir_def/src/attr.rs b/crates/hir_def/src/attr.rs index a2479016e..469811ce8 100644 --- a/crates/hir_def/src/attr.rs +++ b/crates/hir_def/src/attr.rs | |||
@@ -9,7 +9,7 @@ use std::{ | |||
9 | use base_db::CrateId; | 9 | use base_db::CrateId; |
10 | use cfg::{CfgExpr, CfgOptions}; | 10 | use cfg::{CfgExpr, CfgOptions}; |
11 | use either::Either; | 11 | use either::Either; |
12 | use hir_expand::{hygiene::Hygiene, name::AsName, AstId, AttrId, InFile}; | 12 | use hir_expand::{hygiene::Hygiene, name::AsName, AstId, InFile}; |
13 | use itertools::Itertools; | 13 | use itertools::Itertools; |
14 | use la_arena::ArenaMap; | 14 | use la_arena::ArenaMap; |
15 | use mbe::ast_to_token_tree; | 15 | use mbe::ast_to_token_tree; |
@@ -615,6 +615,9 @@ impl DocsRangeMap { | |||
615 | } | 615 | } |
616 | } | 616 | } |
617 | 617 | ||
618 | #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] | ||
619 | pub struct AttrId(pub u32); | ||
620 | |||
618 | #[derive(Debug, Clone, PartialEq, Eq)] | 621 | #[derive(Debug, Clone, PartialEq, Eq)] |
619 | pub struct Attr { | 622 | pub struct Attr { |
620 | pub(crate) id: AttrId, | 623 | pub(crate) id: AttrId, |