Skip to content

Commit 32da73a

Browse files
committed
Auto merge of #9819 - ehuss:beta-move-tmp, r=alexcrichton
[beta] Move `tmp` test directory. This is a beta backport of #9814. Includes #9824 to make CI pass.
2 parents ecec075 + 7ab5d49 commit 32da73a

File tree

5 files changed

+8
-3
lines changed

5 files changed

+8
-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
@@ -627,6 +627,7 @@ impl TomlProfile {
627627
| "rust"
628628
| "rustc"
629629
| "rustdoc"
630+
| "tmp"
630631
| "uninstall"
631632
) || lower_name.starts_with("cargo")
632633
{

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

tests/testsuite/rustdoc_extern_html.rs

+2
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ fn simple() {
6060
}
6161

6262
#[cargo_test]
63+
// Broken, temporarily disable until https://github.com/rust-lang/rust/pull/82776 is resolved.
64+
#[ignore]
6365
fn std_docs() {
6466
// Mapping std docs somewhere else.
6567
if !is_nightly() {

0 commit comments

Comments
 (0)