1
Fork 0

Remove NonMacroAttr.mark_used

This commit is contained in:
Aaron Hill 2021-08-05 17:58:59 -05:00
parent af46699f81
commit 17aef21b30
No known key found for this signature in database
GPG key ID: B4087E510E98B164
4 changed files with 9 additions and 18 deletions

View file

@ -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,
}
}