resolve: Fix incorrect results of opt_def_kind
query for some built-in macros
Previously it always returned `MacroKind::Bang` while some of those macros are actually attributes and derives
This commit is contained in:
parent
4b043faba3
commit
17b1afdbb2
17 changed files with 35 additions and 19 deletions
|
@ -416,7 +416,7 @@ impl<'hir> Sig for hir::Item<'hir> {
|
|||
|
||||
Ok(sig)
|
||||
}
|
||||
hir::ItemKind::Macro(_) => {
|
||||
hir::ItemKind::Macro(..) => {
|
||||
let mut text = "macro".to_owned();
|
||||
let name = self.ident.to_string();
|
||||
text.push_str(&name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue