mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 13:03:31 +00:00
Fallback to target in cfg if not specified in project json config
This commit is contained in:
parent
db99f2dd7e
commit
5b96d4103e
1 changed files with 1 additions and 1 deletions
|
@ -267,7 +267,7 @@ impl ProjectWorkspace {
|
|||
.clone()
|
||||
.map(|it| proc_macro_client.by_dylib_path(&it));
|
||||
|
||||
let target = krate.target.as_deref();
|
||||
let target = krate.target.as_deref().or(target);
|
||||
let target_cfgs = target_cfg_map
|
||||
.entry(target.clone())
|
||||
.or_insert_with(|| get_rustc_cfg_options(target.as_deref()));
|
||||
|
|
Loading…
Reference in a new issue