Skip to content

Commit febce52

Browse files
committed
Output-normalise real path to <repo root>/library
1 parent 27794f9 commit febce52

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
@@ -4165,7 +4165,7 @@ impl<'test> TestCx<'test> {
41654165
}
41664166

41674167
let base_dir = Path::new("/rustc/FAKE_PREFIX");
4168-
// Paths into the libstd/libcore
4168+
// Fake paths into the libstd/libcore
41694169
normalize_path(&base_dir.join("library"), "$SRC_DIR");
41704170
// `ui-fulldeps` tests can show paths to the compiler source when testing macros from
41714171
// `rustc_macros`
@@ -4181,8 +4181,8 @@ impl<'test> TestCx<'test> {
41814181
// eg. /home/user/rust/build
41824182
normalize_path(parent_build_dir, "$BUILD_DIR");
41834183

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

41874187
if json {
41884188
// escaped newlines in json strings should be readable

0 commit comments

Comments
 (0)