-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Moving some code around results in linking error with incremental comp #46475
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
Heh, you might have provided a neat regression test for #46427 |
I'm having a hard time reproducing this. Do you have two consecutive commits somewhere that trigger the problem? |
Not off-hand, but I can try to recreate the state things were in when I noticed this on a branch. |
That would be awesome. |
I ran into a semi-related case today (sorry, these repro steps require
|
Thanks, that's very helpful! |
@sgrif have you seen this bug lately? |
I've had this happen 3 times now today. It's fixed by
cargo clean
, so is not a critical issue, but still is a moderately interesting incremental compilation bug. The change was moving the traitquery_dsl::OffsetDsl
toquery_dsl::methods::OffsetDsl
. The code in question that is failing was importingOffsetDsl::offset
fromdiesel::prelude
instead, thex.offset
is now resolving toquery_dsl::QueryDsl::offset
, which simply callsOffsetDsl::offset
, and is exported from prelude.Anyway, this is the error
and the patch that caused it is https://gist.github.com/sgrif/8bb17b2a143d482e060fc3fd08705067
rustc --version
: rustc 1.24.0-nightly (73bca2b 2017-11-28)The text was updated successfully, but these errors were encountered: