about summary refs log tree commit diff
path: root/compiler/rustc_incremental/src
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2023-11-24 19:28:19 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2023-11-26 12:41:21 +0300
commitc697927f443043fb9715b9b239fa1d2440c0e53c (patch)
treebf4639a340a229b2940d78a6ffd226c4a4f1ff1a /compiler/rustc_incremental/src
parent9529a5d2655f6974c2ee16e91c5db548a3daea03 (diff)
downloadrust-c697927f443043fb9715b9b239fa1d2440c0e53c.tar.gz
rust-c697927f443043fb9715b9b239fa1d2440c0e53c.zip
rustc: `hir().local_def_id_to_hir_id()` -> `tcx.local_def_id_to_hir_id()` cleanup
Diffstat (limited to 'compiler/rustc_incremental/src')
-rw-r--r--compiler/rustc_incremental/src/assert_dep_graph.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_incremental/src/assert_dep_graph.rs b/compiler/rustc_incremental/src/assert_dep_graph.rs
index 3f30b3f2b4c..a5e0654c81d 100644
--- a/compiler/rustc_incremental/src/assert_dep_graph.rs
+++ b/compiler/rustc_incremental/src/assert_dep_graph.rs
@@ -122,7 +122,7 @@ impl<'tcx> IfThisChanged<'tcx> {
 
     fn process_attrs(&mut self, def_id: LocalDefId) {
         let def_path_hash = self.tcx.def_path_hash(def_id.to_def_id());
-        let hir_id = self.tcx.hir().local_def_id_to_hir_id(def_id);
+        let hir_id = self.tcx.local_def_id_to_hir_id(def_id);
         let attrs = self.tcx.hir().attrs(hir_id);
         for attr in attrs {
             if attr.has_name(sym::rustc_if_this_changed) {