mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Don't offer qualified path completions for buitlin derives
This commit is contained in:
parent
a8b76b632c
commit
2abe19e46a
6 changed files with 42 additions and 82 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue