mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Added defined_features in PackageData
This commit is contained in:
parent
70f7a10013
commit
ac3ec18f4b
2 changed files with 8 additions and 5 deletions
|
@ -481,7 +481,7 @@ fn add_target_crate_root(
|
|||
let edition = pkg.edition;
|
||||
let cfg_options = {
|
||||
let mut opts = cfg_options.clone();
|
||||
for feature in pkg.features.iter() {
|
||||
for feature in pkg.active_features.iter() {
|
||||
opts.insert_key_value("feature".into(), feature.into());
|
||||
}
|
||||
opts.extend(pkg.cfgs.iter().cloned());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue