Move methods from Map
to TyCtxt
, part 2.
Continuing the work started in #136466. Every method gains a `hir_` prefix, though for the ones that already have a `par_` or `try_par_` prefix I added the `hir_` after that.
This commit is contained in:
parent
ce36a966c7
commit
fd7b4bf4e1
108 changed files with 314 additions and 346 deletions
|
@ -696,7 +696,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
|
|||
let target_modifiers = stat!("target-modifiers", || self.encode_target_modifiers());
|
||||
|
||||
let root = stat!("final", || {
|
||||
let attrs = tcx.hir().krate_attrs();
|
||||
let attrs = tcx.hir_krate_attrs();
|
||||
self.lazy(CrateRoot {
|
||||
header: CrateHeader {
|
||||
name: tcx.crate_name(LOCAL_CRATE),
|
||||
|
@ -1763,7 +1763,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
|
|||
if should_encode_const(tcx.def_kind(def_id)) {
|
||||
let qualifs = tcx.mir_const_qualif(def_id);
|
||||
record!(self.tables.mir_const_qualif[def_id.to_def_id()] <- qualifs);
|
||||
let body = tcx.hir().maybe_body_owned_by(def_id);
|
||||
let body = tcx.hir_maybe_body_owned_by(def_id);
|
||||
if let Some(body) = body {
|
||||
let const_data = rendered_const(self.tcx, &body, def_id);
|
||||
record!(self.tables.rendered_const[def_id.to_def_id()] <- const_data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue