diff options
-rw-r--r-- | crates/ra_project_model/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_project_model/src/lib.rs b/crates/ra_project_model/src/lib.rs index 4b50b9b69..5d1f871c4 100644 --- a/crates/ra_project_model/src/lib.rs +++ b/crates/ra_project_model/src/lib.rs | |||
@@ -267,7 +267,7 @@ impl ProjectWorkspace { | |||
267 | .clone() | 267 | .clone() |
268 | .map(|it| proc_macro_client.by_dylib_path(&it)); | 268 | .map(|it| proc_macro_client.by_dylib_path(&it)); |
269 | 269 | ||
270 | let target = krate.target.as_deref(); | 270 | let target = krate.target.as_deref().or(target); |
271 | let target_cfgs = target_cfg_map | 271 | let target_cfgs = target_cfg_map |
272 | .entry(target.clone()) | 272 | .entry(target.clone()) |
273 | .or_insert_with(|| get_rustc_cfg_options(target.as_deref())); | 273 | .or_insert_with(|| get_rustc_cfg_options(target.as_deref())); |