mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 11:31:15 +00:00
Allow "package/feature" format feature flag
This commit is contained in:
parent
865583bbbd
commit
64a869c714
@ -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…
x
Reference in New Issue
Block a user