about summary refs log tree commit diff
path: root/src/tools/rustdoc-gui-test
diff options
context:
space:
mode:
authorJieyou Xu <jieyouxu@outlook.com>2025-04-12 12:32:27 +0800
committerJieyou Xu <jieyouxu@outlook.com>2025-04-13 19:59:35 +0800
commit957324b0a0f532dff28755155c5ce07a2ca04383 (patch)
treef0249a91ae8fefd702207743b720972e9f69fe9a /src/tools/rustdoc-gui-test
parente24b0c8e0a9d0b898ede993b62c32d9ebaff27bd (diff)
downloadrust-957324b0a0f532dff28755155c5ce07a2ca04383.tar.gz
rust-957324b0a0f532dff28755155c5ce07a2ca04383.zip
rustdoc-gui-test: pass a `camino::Utf8PathBuf` to `compiletest`
Diffstat (limited to 'src/tools/rustdoc-gui-test')
-rw-r--r--src/tools/rustdoc-gui-test/Cargo.toml1
-rw-r--r--src/tools/rustdoc-gui-test/src/main.rs6
2 files changed, 6 insertions, 1 deletions
diff --git a/src/tools/rustdoc-gui-test/Cargo.toml b/src/tools/rustdoc-gui-test/Cargo.toml
index f7384a98f85..8d958ac94f3 100644
--- a/src/tools/rustdoc-gui-test/Cargo.toml
+++ b/src/tools/rustdoc-gui-test/Cargo.toml
@@ -5,6 +5,7 @@ edition = "2021"
 
 [dependencies]
 build_helper = { path = "../../build_helper" }
+camino = "1"
 compiletest = { path = "../compiletest" }
 getopts = "0.2"
 walkdir = "2"
diff --git a/src/tools/rustdoc-gui-test/src/main.rs b/src/tools/rustdoc-gui-test/src/main.rs
index f1c6e13d3ae..addb0af4a54 100644
--- a/src/tools/rustdoc-gui-test/src/main.rs
+++ b/src/tools/rustdoc-gui-test/src/main.rs
@@ -118,7 +118,11 @@ If you want to install the `browser-ui-test` dependency, run `npm install browse
                     ..Default::default()
                 };
 
-                let test_props = TestProps::from_file(&librs, None, &compiletest_c);
+                let test_props = TestProps::from_file(
+                    &camino::Utf8PathBuf::try_from(librs).unwrap(),
+                    None,
+                    &compiletest_c,
+                );
 
                 if !test_props.compile_flags.is_empty() {
                     cargo.env("RUSTDOCFLAGS", test_props.compile_flags.join(" "));