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

Commit

Permalink
Explain why the RUSTC env var needs to be set in tooltip tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aloucks committed Nov 30, 2018
1 parent b7ce7d5 commit 923bf29
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/actions/hover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1160,6 +1160,8 @@ pub mod test {
use env_logger;
let _ = env_logger::try_init();

// Prevent the hover test project build from trying to use the rls test
// binary as a rustc shim. See RlsExecutor::exec for more information.
if env::var("RUSTC").is_err() {
env::set_var("RUSTC", "rustc");
}
Expand Down

0 comments on commit 923bf29

Please sign in to comment.