Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/project-model/src/env.rs')
-rw-r--r--crates/project-model/src/env.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/project-model/src/env.rs b/crates/project-model/src/env.rs
index ec0f94b8f0..ff9d2035f6 100644
--- a/crates/project-model/src/env.rs
+++ b/crates/project-model/src/env.rs
@@ -65,7 +65,7 @@ pub(crate) fn inject_rustc_tool_env(
// NOTE: Technically we should set this for all crates, but that will worsen the deduplication
// logic so for now just keeping it proc-macros ought to be fine.
if kind.is_proc_macro() {
- env.set("CARGO_RUSTC_CURRENT_DIR", cargo.manifest_path().to_string());
+ env.set("CARGO_RUSTC_CURRENT_DIR", cargo.manifest_path().parent().to_string());
}
}