Skip to content

Commit 03bbcc1

Browse files
committed
Output-normalise real path to <repo root>/library
1 parent 7ceaf19 commit 03bbcc1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/tools/compiletest/src/runtest.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -4205,7 +4205,7 @@ impl<'test> TestCx<'test> {
42054205
}
42064206

42074207
let base_dir = Path::new("/rustc/FAKE_PREFIX");
4208-
// Paths into the libstd/libcore
4208+
// Fake paths into the libstd/libcore
42094209
normalize_path(&base_dir.join("library"), "$SRC_DIR");
42104210
// `ui-fulldeps` tests can show paths to the compiler source when testing macros from
42114211
// `rustc_macros`
@@ -4221,8 +4221,8 @@ impl<'test> TestCx<'test> {
42214221
// eg. /home/user/rust/build
42224222
normalize_path(parent_build_dir, "$BUILD_DIR");
42234223

4224-
// Paths into lib directory.
4225-
normalize_path(&parent_build_dir.parent().unwrap().join("lib"), "$LIB_DIR");
4224+
// Real paths into the libstd/libcore
4225+
normalize_path(&parent_build_dir.parent().unwrap().join("library"), "$SRC_DIR_REAL");
42264226

42274227
if json {
42284228
// escaped newlines in json strings should be readable

0 commit comments

Comments
 (0)