use
prev_index_to_index
CurrentDepGraph
To learn more about how dependency tracking works in rustc, see the [rustc guide].