-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Compiler warnings about inefficient incremental compilation #40766
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
This is coming from the use of |
Yes, this seems to be what ring is doing that triggers this warning. Does the use of If it really is causing performance problems, is there something I can do that is equivalent that won't? And/or is there something that can be changed in rustc to fix the compilation performance for this construct? If it isn't really causing incremental compilation to be slow, then could we change rustc to stop emitting this warning. And/or could we add a way to use |
I don't know how |
It seems strange that that would be true, since it's just documentation, which doesn't affect code generation. IMO documentation should be ignored when comparing things for changes. |
If we can guarantee that it has no influence on a regular compilation session then yes, we can bake special knowledge into the compiler to ignore this attribute. This must be some kind of special case though, because we already filter out doc comments. Does someone have a minimal test case for this lying around? |
I'm closing this in favor of #40946 where there's been some concrete discussion about a solution. |
While compiling diesel/ring rustc emitted the following warning:
@sgrif suspects this to be a bug in rustc rather than in diesel. So I will report this also here.
Environment:
rustc 1.17.0-nightly (8c4f2c6 2017-03-22)
export CARGO_INCREMENTAL=1 RUSTFLAGS="-Zincremental-info"
The text was updated successfully, but these errors were encountered: