mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-15 05:26:47 +00:00
rustdoc-gui-test: pass a camino::Utf8PathBuf
to compiletest
This commit is contained in:
parent
e24b0c8e0a
commit
957324b0a0
@ -4672,6 +4672,7 @@ name = "rustdoc-gui-test"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"build_helper",
|
||||
"camino",
|
||||
"compiletest",
|
||||
"getopts",
|
||||
"walkdir",
|
||||
|
@ -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…
Reference in New Issue
Block a user