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
fc532c5b32
commit
8cf9eea5b3
102 changed files with 146 additions and 150 deletions
|
|
@ -262,7 +262,7 @@ fn is_format_trait_impl(cx: &LateContext<'_>, impl_item: &ImplItem<'_>) -> Optio
|
|||
&& let Some(name) = cx.tcx.get_diagnostic_name(did)
|
||||
&& matches!(name, sym::Debug | sym::Display)
|
||||
{
|
||||
let body = cx.tcx.hir().body(body_id);
|
||||
let body = cx.tcx.hir_body(body_id);
|
||||
let formatter_name = body
|
||||
.params
|
||||
.get(1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue