-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Lints shouldn't trigger a full rebuild #9055
Comments
Changes to RUSTFLAGS currently requires a full rebuild because including the flags in the filename causes problems in some situations (see #8716 for tracking this issue). Giving higher-level controls over lints is tracked in #5034. The only workaround right now is to use |
@ehuss Thanks for the explanation. A different target directory looks like a reasonable alternative I was thinking about adding something like |
I think it would be best to have a design for #5034 and/or #8424 for controlling lints and that would hopefully consider the one-off command-line or env-var options. Unfortunately it is not clear which direction that should go, and I don't have much time to help it along. But feel free to engage on those issues or the forums to discuss various use cases and options. |
Closing in preference for the linked issues. |
If duplicated or Rustc stuff, feel free to close to it.
When using environment variables, lints can be declared within
RUSTFLAGS
but anytimeRUSTFLAGS
changes, a full rebuild is triggered and this can lead to expensive and time consuming tasks/compilations. Forgive my ignorance since I am not a cargo expert but looks like that all lints should only affect the target crate instead of all dependencies.The text was updated successfully, but these errors were encountered: