Skip to content
This repository was archived by the owner on Nov 24, 2023. It is now read-only.

use RUSTC environment var in parse_and_replace::compile if present #144

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
3 changes: 2 additions & 1 deletion tests/parse_and_replace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ extern crate difference;

use std::collections::HashSet;
use std::ffi::OsString;
use std::env;
use std::fs;
use std::path::{Path, PathBuf};
use std::process::Output;
Expand Down Expand Up @@ -51,7 +52,7 @@ fn compile(file: &Path, mode: &str) -> Result<Output, Error> {
args.push("--edition=2018".into());
}

let res = duct::cmd("rustc", &args)
let res = duct::cmd(env::var_os("RUSTC").unwrap_or("rustc".into()), &args)
.env("CLIPPY_DISABLE_DOCS_LINKS", "true")
.env_remove("RUST_LOG")
.stdout_capture()
Expand Down