-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RUSTFLAGS / RUSTDOCFLAGS are not being passed to rustdoc when target-applies-to-host nightly feature is used #10744
Comments
I just verified that this is definitely cargo not passing the flags, by looking at the |
I found out what is causing this / why we only saw it recently despite the bug being reproducible back to start of March: This only happens with target-applies-to-host = false
[unstable]
target-applies-to-host = true in the cargo configuration. Based on that and its timing, I suspect this bug was introduced in #10395; cc @jonhoo. |
…ation" This reverts commit 3d65c1e. This was breaking our clippy lint configuration in .cargo/config.toml: rust-lang/cargo#10744
Minimized reproduction: https://github.com/jplatte/rustflags-bug |
Okay, so this is definitely from #10395, had I read the comments there I would have known that this is expected behavior: #10395 (comment) The way forward seems to be this: #10395 (comment) |
See also #10462 for follow up in that direction. |
I'm not really clear on whether that would help for our main use case, which is
|
Problem
For two project I maintain, the docs generated by CI no longer includes an index file despite the appropriate nightly flags being used. I initially opened rust-lang/rust#97881 for this, but now found out that it's actually a bug in Cargo that doesn't pass
RUSTDOCFLAGS
on torustdoc
in the affected workspaces (though it doesn't seem to affect all workspaces).Steps
RUSTDOCFLAGS
set to--cfg compile_error
, runcargo +nightly doc -p ruma
crates/ruma/src/lib.rs
Notes
1.63.0-nightly (85e457e15 2022-06-07)
)1.61.0-nightly (3d6970d 2022-02-28)
(rustupnightly-2022-03-02
)1.61.0-nightly (d6cdde5 2022-02-22)
(rustupnightly-2022-03-01
).Version
The text was updated successfully, but these errors were encountered: