Skip to content

Commit c003957

Browse files
committed
rustdoc-gui-test: pass a camino::Utf8PathBuf to compiletest
1 parent 17c368e commit c003957

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

Diff for: Cargo.lock

+1
Original file line numberDiff line numberDiff line change
@@ -4693,6 +4693,7 @@ name = "rustdoc-gui-test"
46934693
version = "0.1.0"
46944694
dependencies = [
46954695
"build_helper",
4696+
"camino",
46964697
"compiletest",
46974698
"getopts",
46984699
"walkdir",

Diff for: src/tools/rustdoc-gui-test/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ edition = "2021"
55

66
[dependencies]
77
build_helper = { path = "../../build_helper" }
8+
camino = "1"
89
compiletest = { path = "../compiletest" }
910
getopts = "0.2"
1011
walkdir = "2"

Diff for: src/tools/rustdoc-gui-test/src/main.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,11 @@ If you want to install the `browser-ui-test` dependency, run `npm install browse
118118
..Default::default()
119119
};
120120

121-
let test_props = TestProps::from_file(&librs, None, &compiletest_c);
121+
let test_props = TestProps::from_file(
122+
&camino::Utf8PathBuf::try_from(librs).unwrap(),
123+
None,
124+
&compiletest_c,
125+
);
122126

123127
if !test_props.compile_flags.is_empty() {
124128
cargo.env("RUSTDOCFLAGS", test_props.compile_flags.join(" "));

0 commit comments

Comments
 (0)