-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Only first cap-lints argument is used #54282
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
Comments
Shouldn't only the last |
I believe the behavior we determined is that the first one is -- using the last one feels like 'the right thing' but I'm not sure it's feasible to make that change very well. |
We can't know unless we try. |
Triage: given this code: fn main() {
100u8 << 10;
} produces this:
That is, nothing has changed, the first parameter wins. |
Do we ever want to change the behavior? Cargo probes rustc information with extra rustc calls. If user provides Granted, Cargo should communicate with rustc through a better interface :) |
This is behavior of a stable compiler flag interacting with each other. If we do change it so last instance takes precedence, can that break users who rely on the first-instance wins behavior? |
rustc --cap-lints=warn --cap-lints=foo
should give an error on the invalid "foo" passed, but currently this does nothing.It is not completely clear what exact behavior we want on
--cap-lints=allow --cap-lints=forbid
for example, though.Currently this means that there's no way to override Cargo's default behavior on dependencies via RUSTFLAGS, for example.
The text was updated successfully, but these errors were encountered: