From 3f4766bdc59f157316ed49ed2d42d2c5ef4d878a Mon Sep 17 00:00:00 2001 From: Christian Legnitto Date: Sat, 5 Jul 2025 23:37:19 +0200 Subject: [PATCH] Update compiletest target path Without this change it accidentally used tests/target/compiletest-{deps,results} instead of the workspace target dir @eddyb pointed this out. --- tests/compiletests/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/compiletests/src/main.rs b/tests/compiletests/src/main.rs index 64ca1c7e70a..a17ec704b70 100644 --- a/tests/compiletests/src/main.rs +++ b/tests/compiletests/src/main.rs @@ -60,7 +60,7 @@ fn main() { let opt = Opt::parse(); let tests_dir = PathBuf::from(env!("CARGO_MANIFEST_DIR")); - let workspace_root = tests_dir.parent().unwrap(); + let workspace_root = tests_dir.parent().unwrap().parent().unwrap(); let original_target_dir = workspace_root.join("target"); let deps_target_dir = original_target_dir.join("compiletest-deps"); let compiletest_build_dir = original_target_dir.join("compiletest-results");