Correct comments about untracked accesses.
This commit is contained in:
parent
071a047dc7
commit
9f6d7e7dad
4 changed files with 23 additions and 21 deletions
|
@ -445,7 +445,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
|
|||
}
|
||||
|
||||
fn encode_def_path_table(&mut self) {
|
||||
let table = self.tcx.hir().definitions().def_path_table();
|
||||
let table = self.tcx.resolutions(()).definitions.def_path_table();
|
||||
if self.is_proc_macro {
|
||||
for def_index in std::iter::once(CRATE_DEF_INDEX)
|
||||
.chain(self.tcx.hir().krate().proc_macros.iter().map(|p| p.owner.local_def_index))
|
||||
|
@ -1062,7 +1062,7 @@ impl EncodeContext<'a, 'tcx> {
|
|||
|
||||
let data = ModData {
|
||||
reexports,
|
||||
expansion: tcx.hir().definitions().expansion_that_defined(local_def_id),
|
||||
expansion: tcx.resolutions(()).definitions.expansion_that_defined(local_def_id),
|
||||
};
|
||||
|
||||
record!(self.tables.kind[def_id] <- EntryKind::Mod(self.lazy(data)));
|
||||
|
@ -1759,7 +1759,7 @@ impl EncodeContext<'a, 'tcx> {
|
|||
.map(|(trait_def_id, mut impls)| {
|
||||
// Bring everything into deterministic order for hashing
|
||||
impls.sort_by_cached_key(|&(index, _)| {
|
||||
tcx.hir().definitions().def_path_hash(LocalDefId { local_def_index: index })
|
||||
tcx.hir().def_path_hash(LocalDefId { local_def_index: index })
|
||||
});
|
||||
|
||||
TraitImpls {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue