We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7b62008 + b176f86 commit add109aCopy full SHA for add109a
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.local_def_id_to_hir_id(local_def_id)),
+ tcx.hir_node_by_def_id(local_def_id),
148
Node::Item(&hir::Item {
149
kind: hir::ItemKind::Static(..) | hir::ItemKind::Fn(..),
150
..
0 commit comments