Skip to content

Commit 16733bc

Browse files
committed
Auto merge of #118256 - petrochenkov:nohir, r=compiler-errors
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.
2 parents 3ada01c + b41f63a commit 16733bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/miri.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ impl rustc_driver::Callbacks for MiriBeRustCompilerCalls {
144144
// Otherwise it may cause unexpected behaviours and ICEs
145145
// (https://github.com/rust-lang/rust/issues/86261).
146146
let is_reachable_non_generic = matches!(
147-
tcx.hir().get(tcx.hir().local_def_id_to_hir_id(local_def_id)),
147+
tcx.hir().get(tcx.local_def_id_to_hir_id(local_def_id)),
148148
Node::Item(&hir::Item {
149149
kind: hir::ItemKind::Static(..) | hir::ItemKind::Fn(..),
150150
..

0 commit comments

Comments
 (0)