Skip to content

Commit 4e7fe83

Browse files
committed
Move tmp test directory.
1 parent 580461b commit 4e7fe83

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

src/cargo/core/compiler/layout.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ impl Layout {
172172
fingerprint: dest.join(".fingerprint"),
173173
examples: dest.join("examples"),
174174
doc: root.join("doc"),
175-
tmp: dest.join("tmp"),
175+
tmp: root.join("tmp"),
176176
root,
177177
dest,
178178
_lock: lock,

src/cargo/util/toml/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,7 @@ impl TomlProfile {
642642
| "rust"
643643
| "rustc"
644644
| "rustdoc"
645+
| "tmp"
645646
| "uninstall"
646647
) || lower_name.starts_with("cargo")
647648
{

src/doc/src/reference/environment-variables.md

-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,6 @@ corresponding environment variable is set to the empty string, `""`.
233233
where integration tests or benchmarks are free to put any data needed by
234234
the tests/benches. Cargo initially creates this directory but doesn't
235235
manage its content in any way, this is the responsibility of the test code.
236-
There are separate directories for `debug` and `release` profiles.
237236

238237
[integration test]: cargo-targets.md#integration-tests
239238
[`env` macro]: ../../std/macro.env.html

tests/testsuite/build.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1377,7 +1377,10 @@ fn crate_env_vars() {
13771377
let tmpdir: PathBuf = tmp.unwrap().into();
13781378
13791379
let exe: PathBuf = env::current_exe().unwrap().into();
1380-
let mut expected: PathBuf = exe.parent().unwrap().parent().unwrap().into();
1380+
let mut expected: PathBuf = exe.parent().unwrap()
1381+
.parent().unwrap()
1382+
.parent().unwrap()
1383+
.into();
13811384
expected.push("tmp");
13821385
assert_eq!(tmpdir, expected);
13831386

0 commit comments

Comments
 (0)