Don't offer qualified path completions for buitlin derives

This commit is contained in:
Lukas Wirth 2022-03-10 21:22:13 +01:00
parent a8b76b632c
commit 2abe19e46a
6 changed files with 42 additions and 82 deletions

View file

@ -1811,6 +1811,10 @@ impl Macro {
pub fn is_attr(&self, db: &dyn HirDatabase) -> bool {
matches!(self.kind(db), MacroKind::Attr)
}
pub fn is_derive(&self, db: &dyn HirDatabase) -> bool {
matches!(self.kind(db), MacroKind::Derive)
}
}
impl HasVisibility for Macro {