mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
Move AttrId
back into hir_def
This commit is contained in:
parent
07cea5e709
commit
a87bec5148
5 changed files with 12 additions and 12 deletions
|
@ -293,12 +293,9 @@ pub struct MacroCallLoc {
|
|||
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
|
||||
pub enum MacroCallKind {
|
||||
FnLike { ast_id: AstId<ast::MacroCall>, fragment: FragmentKind },
|
||||
Derive { ast_id: AstId<ast::Item>, derive_name: String, derive_attr: AttrId },
|
||||
Derive { ast_id: AstId<ast::Item>, derive_name: String, derive_attr_index: u32 },
|
||||
}
|
||||
|
||||
#[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