about summary refs log tree commit diff
path: root/compiler/rustc_passes/src/lang_items.rs
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_passes/src/lang_items.rs
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_passes/src/lang_items.rs')
-rw-r--r--compiler/rustc_passes/src/lang_items.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_passes/src/lang_items.rs b/compiler/rustc_passes/src/lang_items.rs
index f78157f89ae..23baf14aea1 100644
--- a/compiler/rustc_passes/src/lang_items.rs
+++ b/compiler/rustc_passes/src/lang_items.rs
@@ -42,7 +42,7 @@ impl<'tcx> LanguageItemCollector<'tcx> {
     }
 
     fn check_for_lang(&mut self, actual_target: Target, def_id: LocalDefId) {
-        let attrs = self.tcx.hir().attrs(self.tcx.hir().local_def_id_to_hir_id(def_id));
+        let attrs = self.tcx.hir().attrs(self.tcx.local_def_id_to_hir_id(def_id));
         if let Some((name, span)) = extract(attrs) {
             match LangItem::from_name(name) {
                 // Known lang item with attribute on correct target.