diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2021-05-20 20:17:45 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2021-07-06 19:26:02 +0200 |
| commit | 9f6d7e7dad3b59fb8939a077c577019852aad33f (patch) | |
| tree | 2b096193cf9b19bf9b5f8419afc4c998126f51d0 /compiler/rustc_metadata/src | |
| parent | 071a047dc7815d4cf8fa3056106d56c0fdc9607a (diff) | |
| download | rust-9f6d7e7dad3b59fb8939a077c577019852aad33f.tar.gz rust-9f6d7e7dad3b59fb8939a077c577019852aad33f.zip | |
Correct comments about untracked accesses.
Diffstat (limited to 'compiler/rustc_metadata/src')
| -rw-r--r-- | compiler/rustc_metadata/src/rmeta/encoder.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_metadata/src/rmeta/encoder.rs b/compiler/rustc_metadata/src/rmeta/encoder.rs index 2478d15e554..0e924d64435 100644 --- a/compiler/rustc_metadata/src/rmeta/encoder.rs +++ b/compiler/rustc_metadata/src/rmeta/encoder.rs @@ -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 { |
