diff options
Diffstat (limited to 'community/rust/cargo-tests-fix-build-target.patch')
-rw-r--r-- | community/rust/cargo-tests-fix-build-target.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/community/rust/cargo-tests-fix-build-target.patch b/community/rust/cargo-tests-fix-build-target.patch index 98195f697c..413053ff6b 100644 --- a/community/rust/cargo-tests-fix-build-target.patch +++ b/community/rust/cargo-tests-fix-build-target.patch @@ -25,3 +25,23 @@ error[E0463]: can't find crate for `std` .env("RUSTFLAGS", "--cfg with_b"), execs().with_status(0), ); +--- a/src/tools/cargo/tests/testsuite/rustdoc.rs ++++ b/src/tools/cargo/tests/testsuite/rustdoc.rs +@@ -269,13 +269,13 @@ + .build(); + + assert_that( +- p.cargo("rustdoc --verbose --target x86_64-unknown-linux-gnu"), ++ p.cargo("rustdoc --verbose --target x86_64-alpine-linux-musl"), + execs().with_status(0).with_stderr("\ + [DOCUMENTING] a v0.0.1 ([..]) + [RUNNING] `rustdoc --crate-name a src[/]lib.rs \ +- --target x86_64-unknown-linux-gnu \ +- -o [..]foo[/]target[/]x86_64-unknown-linux-gnu[/]doc \ +- -L dependency=[..]foo[/]target[/]x86_64-unknown-linux-gnu[/]debug[/]deps \ ++ --target x86_64-alpine-linux-musl \ ++ -o [..]foo[/]target[/]x86_64-alpine-linux-musl[/]doc \ ++ -L dependency=[..]foo[/]target[/]x86_64-alpine-linux-musl[/]debug[/]deps \ + -L dependency=[..]foo[/]target[/]debug[/]deps` + [FINISHED] dev [unoptimized + debuginfo] target(s) in [..]"), + ); |