mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 06:41:48 +00:00
Expand proc-macros in workspace root, not package root
This commit is contained in:
parent
2025b43653
commit
9a47e6f2c8
7 changed files with 34 additions and 14 deletions
|
@ -243,6 +243,10 @@ impl TargetKind {
|
|||
pub fn is_executable(self) -> bool {
|
||||
matches!(self, TargetKind::Bin | TargetKind::Example)
|
||||
}
|
||||
|
||||
pub fn is_proc_macro(self) -> bool {
|
||||
matches!(self, TargetKind::Lib { is_proc_macro: true })
|
||||
}
|
||||
}
|
||||
|
||||
// Deserialize helper for the cargo metadata
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue