We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a57e79 commit 0f8029fCopy full SHA for 0f8029f
src/test/mod.rs
@@ -866,7 +866,8 @@ fn make_temp_file(file_name: &'static str) -> TempFile {
866
use std::env::var;
867
use std::fs::File;
868
869
- let target_dir = var("CARGO_TARGET_DIR").unwrap_or_else(|_| ".".to_owned());
+ // Used in the Rust build system.
870
+ let target_dir = var("RUSTFMT_TEST_DIR").unwrap_or_else(|_| ".".to_owned());
871
let path = Path::new(&target_dir).join(file_name);
872
873
let mut file = File::create(&path).expect("Couldn't create temp file");
0 commit comments