rustdoc-gui-test: pass a camino::Utf8PathBuf to compiletest
This commit is contained in:
parent
e24b0c8e0a
commit
957324b0a0
3 changed files with 7 additions and 1 deletions
|
|
@ -5,6 +5,7 @@ edition = "2021"
|
|||
|
||||
[dependencies]
|
||||
build_helper = { path = "../../build_helper" }
|
||||
camino = "1"
|
||||
compiletest = { path = "../compiletest" }
|
||||
getopts = "0.2"
|
||||
walkdir = "2"
|
||||
|
|
|
|||
|
|
@ -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(" "));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue