Remove NonMacroAttr.mark_used
This commit is contained in:
parent
af46699f81
commit
17aef21b30
4 changed files with 9 additions and 18 deletions
|
@ -195,7 +195,7 @@ impl<'a> Resolver<'a> {
|
|||
crate fn get_macro(&mut self, res: Res) -> Option<Lrc<SyntaxExtension>> {
|
||||
match res {
|
||||
Res::Def(DefKind::Macro(..), def_id) => Some(self.get_macro_by_def_id(def_id)),
|
||||
Res::NonMacroAttr(attr_kind) => Some(self.non_macro_attr(attr_kind.is_used())),
|
||||
Res::NonMacroAttr(_) => Some(self.non_macro_attr.clone()),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue