mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 11:59:49 +00:00
Add AttrId
to track attribute sources
This commit is contained in:
parent
99ed68a109
commit
3fcdd1bcdf
2 changed files with 20 additions and 14 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue