mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
feat: Enable flyimport completions for attributes
This commit is contained in:
parent
9b4ca77572
commit
1f254dd855
8 changed files with 217 additions and 34 deletions
|
@ -1716,6 +1716,10 @@ impl MacroDef {
|
|||
MacroKind::Attr | MacroKind::Derive => false,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn is_attr(&self) -> bool {
|
||||
matches!(self.kind(), MacroKind::Attr)
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy, PartialEq, Eq, Debug, Hash)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue