Skip to content

Commit

Permalink
Auto merge of #118500 - ZetaNumbers:tcx_hir_refactor, r=petrochenkov
Browse files Browse the repository at this point in the history
Move some methods from `tcx.hir()` to `tcx`

rust-lang/rust#118256 (comment)

Renamed:
- find -> opt_hir_node
- get -> hir_node
- find_by_def_id -> opt_hir_node_by_def_id
- get_by_def_id -> hir_node_by_def_id
  • Loading branch information
bors committed Dec 13, 2023
2 parents 7b62008 + b176f86 commit add109a
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.local_def_id_to_hir_id(local_def_id)),
tcx.hir_node_by_def_id(local_def_id),
Node::Item(&hir::Item {
kind: hir::ItemKind::Static(..) | hir::ItemKind::Fn(..),
..
Expand Down

0 comments on commit add109a

Please sign in to comment.