-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Closed
Closed
Copy link
Labels
A-incr-compArea: Incremental compilationArea: Incremental compilationC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.
Description
At the moment, when we serialize a Span
, we drop any macro expansion information, that is, we just keep the lo
and hi
fields and drop the ctxt
field. Consequently, when we load something with a Span
from disk (like a piece of MIR, for example), and that Span
in there had a non-zero ctxt
before being stored to disk, then we get a different Fingerprint
because we now have an empty ctxt
.
I'm not sure whether this is harmless and could be ignored but it certainly messes with the otherwise very handy -Zincremental-verify-ich
feature. I'd prefer if we found a way of making this completely accurate (e.g. by somehow serializing and then restoring Span
expansion contexts).
Metadata
Metadata
Assignees
Labels
A-incr-compArea: Incremental compilationArea: Incremental compilationC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.