Add AttrId to track attribute sources
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user