Currently rustdoc does not forward `-Z` options to rustc when building test executables. This makes impossible to use rustdoc to run test samples when crate under test is instrumented with one of sanitizers `-Zsanitizer=...`, since the final linking step will not include sanitizer runtime library. Forward `-Z` options to rustc to solve the issue. Helps with #43031.
22 lines
478 B
Text
22 lines
478 B
Text
|
|
running 1 test
|
|
test $DIR/unparseable-doc-test.rs - foo (line 6) ... FAILED
|
|
|
|
failures:
|
|
|
|
---- $DIR/unparseable-doc-test.rs - foo (line 6) stdout ----
|
|
error: unterminated double quote string
|
|
--> $DIR/unparseable-doc-test.rs:8:1
|
|
|
|
|
LL | "unterminated
|
|
| ^^^^^^^^^^^^^
|
|
|
|
error: aborting due to previous error
|
|
|
|
Couldn't compile the test.
|
|
|
|
failures:
|
|
$DIR/unparseable-doc-test.rs - foo (line 6)
|
|
|
|
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out
|
|
|