Fix shared_std_dependency_rebuild running on Windows (#15111)

This fixes the `standard_lib::shared_std_dependency_rebuild` test while
running on Windows. On my system, `CARGO_MANIFEST_DIR` is a normal
windows-style path (`D:\rust\cargo`) with backslashes. That is not valid
TOML syntax. I don't know why this doesn't fail on CI (maybe CI sets a
unix-style current dir?).
This commit is contained in:
Eric Huss 2025-01-28 03:39:35 +00:00 committed by GitHub
commit f71f565bbd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -264,7 +264,7 @@ fn shared_std_dependency_rebuild() {
[build-dependencies]
dep_test = {{ path = \"{}/tests/testsuite/mock-std/dep_test\" }}
",
manifest_dir
manifest_dir.replace('\\', "/")
)
.as_str(),
)