Skip to content

Commit f71f565

Browse files
authored
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?).
2 parents f62525d + caff80d commit f71f565

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/testsuite/standard_lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ fn shared_std_dependency_rebuild() {
264264
[build-dependencies]
265265
dep_test = {{ path = \"{}/tests/testsuite/mock-std/dep_test\" }}
266266
",
267-
manifest_dir
267+
manifest_dir.replace('\\', "/")
268268
)
269269
.as_str(),
270270
)

0 commit comments

Comments
 (0)