mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-27 02:06:57 +00:00
Allow "package/feature" format feature flag
This commit is contained in:
parent
865583bbbd
commit
64a869c714
1 changed files with 3 additions and 1 deletions
|
|
@ -594,7 +594,9 @@ impl CargoWorkspace {
|
|||
.filter_map(|package| {
|
||||
let package = &self[package];
|
||||
if package.is_member {
|
||||
Some(package.features.keys().cloned())
|
||||
Some(package.features.keys().cloned().chain(
|
||||
package.features.keys().map(|key| format!("{}/{key}", package.name)),
|
||||
))
|
||||
} else {
|
||||
None
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue