aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_def/src/attr.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/hir_def/src/attr.rs')
-rw-r--r--crates/hir_def/src/attr.rs5
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::{
9use base_db::CrateId; 9use base_db::CrateId;
10use cfg::{CfgExpr, CfgOptions}; 10use cfg::{CfgExpr, CfgOptions};
11use either::Either; 11use either::Either;
12use hir_expand::{hygiene::Hygiene, name::AsName, AstId, AttrId, InFile}; 12use hir_expand::{hygiene::Hygiene, name::AsName, AstId, InFile};
13use itertools::Itertools; 13use itertools::Itertools;
14use la_arena::ArenaMap; 14use la_arena::ArenaMap;
15use mbe::ast_to_token_tree; 15use 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)]
619pub struct AttrId(pub u32);
620
618#[derive(Debug, Clone, PartialEq, Eq)] 621#[derive(Debug, Clone, PartialEq, Eq)]
619pub struct Attr { 622pub struct Attr {
620 pub(crate) id: AttrId, 623 pub(crate) id: AttrId,