Fix `RUSTC=./relative-path` when building
authorAlex Crichton <alex@alexcrichton.com>
Wed, 31 Jan 2018 18:30:01 +0000 (10:30 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Thu, 1 Feb 2018 21:12:51 +0000 (13:12 -0800)
commit64f72af4b51e7f130215c1c0245a96f071a1f1dc
treefe7ae7a1f0f7c4b47a2d2b726f2608ea390c3fbb
parent64326d735a0c883ad6aa0a2c49fe12b5b61307e1
Fix `RUSTC=./relative-path` when building

This commit adjusts the compiler location logic to resolve `./relative-path`
before invoking rustc to ensure it's no longer cwd-relative. This is how many
other variables like `CARGO_HOME` work, so it's applying similar logic.
src/cargo/ops/cargo_test.rs
src/cargo/util/config.rs
src/cargo/util/lazy_cell.rs
tests/bench.rs
tests/workspaces.rs