Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Don't forcibly set CARGO_MANIFEST_DIR as a workaround for Clippy #1525

Merged
merged 1 commit into from
Aug 6, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions rls/src/build/rustc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ pub(crate) fn rustc(

config.clippy_preference
};
// Required for Clippy not to crash when running outside Cargo?
local_envs.entry("CARGO_MANIFEST_DIR".into()).or_insert_with(|| Some(build_dir.into()));

let (guard, _) = env_lock.lock();
let restore_env = Environment::push_with_lock(&local_envs, cwd, guard);
Expand Down