Move some Map
methods onto TyCtxt
.
The end goal is to eliminate `Map` altogether. I added a `hir_` prefix to all of them, that seemed simplest. The exceptions are `module_items` which became `hir_module_free_items` because there was already a `hir_module_items`, and `items` which became `hir_free_items` for consistency with `hir_module_free_items`.
This commit is contained in:
parent
cd1d84cdf7
commit
f86f7ad5f2
197 changed files with 465 additions and 476 deletions
|
@ -125,7 +125,7 @@ impl<'tcx> OpaqueTypeCollector<'tcx> {
|
|||
#[instrument(level = "trace", skip(self))]
|
||||
// Recurse into these, as they are type checked with their parent
|
||||
fn visit_nested_body(&mut self, id: rustc_hir::BodyId) {
|
||||
let body = self.collector.tcx.hir().body(id);
|
||||
let body = self.collector.tcx.hir_body(id);
|
||||
self.visit_body(body);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue