Skip to content

Commit b41f63a

Browse files
committed
rustc: hir().local_def_id_to_hir_id() -> tcx.local_def_id_to_hir_id() cleanup
1 parent 3e45754 commit b41f63a

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)