Skip to content

Moving some code around results in linking error with incremental comp #46475

Open
@sgrif

Description

@sgrif

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 trait query_dsl::OffsetDsl to query_dsl::methods::OffsetDsl. The code in question that is failing was importing OffsetDsl::offset from diesel::prelude instead, the x.offset is now resolving to query_dsl::QueryDsl::offset, which simply calls OffsetDsl::offset, and is exported from prelude.

Anyway, this is the error
screen shot 2017-12-03 at 11 07 06 am and the patch that caused it is https://gist.github.com/sgrif/8bb17b2a143d482e060fc3fd08705067

rustc --version: rustc 1.24.0-nightly (73bca2b 2017-11-28)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-incr-compArea: Incremental compilationC-bugCategory: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions