Skip to content

Incremental compilation ICE with predicates_of #84341

Open
@Aaron1011

Description

@Aaron1011

Anyone encountering this issue (or an issue linked here) can run either cargo clean or cargo clean -p <your_package_name> as a temporary workaround.

Since #83007 was merged, we now ICE during incremental compilation when the hash of a re-computed query result does not match the hash from a previous session.

There have been a very large number of bug reports, all involving predicates_of:

There are several common characteristics across these issues

  • All of them involve calling predicate_of on a trait from the standard library, not user code.
  • All of them involve remapped paths pointing into the local standard library source code.

I've been able to reproduce similar crashes to these by adding or removing the rust-src component between compilation sessions

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-incr-compArea: Incremental compilationC-bugCategory: This is a bug.E-needs-mcveCall for participation: This issue has a repro, but needs a Minimal Complete and Verifiable ExampleE-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️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