We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
hir().local_def_id_to_hir_id()
tcx.local_def_id_to_hir_id()
1 parent 3e45754 commit b41f63aCopy full SHA for b41f63a
src/bin/miri.rs
@@ -144,7 +144,7 @@ impl rustc_driver::Callbacks for MiriBeRustCompilerCalls {
144
// Otherwise it may cause unexpected behaviours and ICEs
145
// (https://github.com/rust-lang/rust/issues/86261).
146
let is_reachable_non_generic = matches!(
147
- 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)),
148
Node::Item(&hir::Item {
149
kind: hir::ItemKind::Static(..) | hir::ItemKind::Fn(..),
150
..
0 commit comments