mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-28 20:16:58 +03:00
Correct comments about untracked accesses.
This commit is contained in:
@@ -445,7 +445,7 @@ fn encode_info_for_items(&mut self) {
|
||||
}
|
||||
|
||||
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 @@ fn encode_info_for_mod(&mut self, local_def_id: LocalDefId, md: &hir::Mod<'_>) {
|
||||
|
||||
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)));
|
||||
@@ -1754,7 +1754,7 @@ fn encode_impls(&mut self) -> Lazy<[TraitImpls]> {
|
||||
.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 {
|
||||
|
||||
Reference in New Issue
Block a user