Closed
Description
metavar_spans
is a piece of global data that lives in SessionGlobals
, it is similar to hygiene data in the same SessionGlobals
.
This table is populated during macro expansion and after that it doesn't change.
Data from the table can be read from any query that performs the span1.to(span2)
operation.
This table is clearly a piece of untracked data.
We also cannot querify accesses to it by passing tcx
to all span1.to(span2)
operations.
I suspect the whole table should be hashed at some point after macro expansion so it becomes an initial input to the query system.
Metadata
Metadata
Assignees
Labels
Area: Incremental compilationArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)Area: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html)Category: This is a bug.Relevant to the compiler team, which will review and decide on the PR/issue.Working group: Incremental compilation