We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff5934f commit b7eeb3cCopy full SHA for b7eeb3c
src/tools/compiletest/src/runtest.rs
@@ -4222,7 +4222,9 @@ impl<'test> TestCx<'test> {
4222
normalize_path(parent_build_dir, "$BUILD_DIR");
4223
4224
// Real paths into the libstd/libcore
4225
- normalize_path(&parent_build_dir.parent().unwrap().join("library"), "$SRC_DIR_REAL");
+ let rust_src_dir =
4226
+ &self.config.sysroot_base.join("lib/rustlib/src/rust").canonicalize().unwrap();
4227
+ normalize_path(&rust_src_dir.join("library"), "$SRC_DIR_REAL");
4228
4229
if json {
4230
// escaped newlines in json strings should be readable
0 commit comments