Add AttrId to track attribute sources

This commit is contained in:
Jonas Schievink 2021-04-08 19:44:21 +02:00
parent 99ed68a109
commit 3fcdd1bcdf
2 changed files with 20 additions and 14 deletions

View file

@ -294,6 +294,9 @@ pub enum MacroCallKind {
Derive { ast_id: AstId<ast::Item>, derive_name: String },
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub struct AttrId(pub u32);
impl MacroCallKind {
fn file_id(&self) -> HirFileId {
match self {