You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the report! I believe this is a duplicate of #12532 and #7040, so closing in favor of those.
You can use -Zdoctest-xcompile on nightly to honor the linker flag.
For rustflags, you need to also specify rustdocflags. Conceptually, doctests are going through rustdoc which has a different field for specifying its flags.
Problem
Doc-test in
cargo test --doc
andcargo test
does not respect linker settings in~/.cargo/config.toml
.Steps
~/.cargo/config.toml
:cargo test --doc
cargo build
,mold
is used, but not for doc-testslinker = "gcc"
, try again (same behaviour)linker = "clang"
, try again (same behaviour)Possible Solution(s)
No response
Notes
No response
Version
The text was updated successfully, but these errors were encountered: