Skip to content

Commit

Permalink
Auto merge of #118256 - petrochenkov:nohir, r=compiler-errors
Browse files Browse the repository at this point in the history
rustc: `hir().local_def_id_to_hir_id()` -> `tcx.local_def_id_to_hir_id()` cleanup

Noticed this while working on rust-lang/rust#118188.

The history here is that the method was moved from HIR map to tcx in rust-lang/rust#93373 as a part of incremental compilation work, so it's unlikely to go back.
  • Loading branch information
bors committed Nov 26, 2023
2 parents 3ada01c + b41f63a commit 16733bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bin/miri.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ impl rustc_driver::Callbacks for MiriBeRustCompilerCalls {
// Otherwise it may cause unexpected behaviours and ICEs
// (https://github.com/rust-lang/rust/issues/86261).
let is_reachable_non_generic = matches!(
tcx.hir().get(tcx.hir().local_def_id_to_hir_id(local_def_id)),
tcx.hir().get(tcx.local_def_id_to_hir_id(local_def_id)),
Node::Item(&hir::Item {
kind: hir::ItemKind::Static(..) | hir::ItemKind::Fn(..),
..
Expand Down

0 comments on commit 16733bc

Please sign in to comment.