about summary refs log tree commit diff
path: root/compiler/rustc_passes/src/check_const.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/check_const.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/check_const.rs')
-rw-r--r--compiler/rustc_passes/src/check_const.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_passes/src/check_const.rs b/compiler/rustc_passes/src/check_const.rs
index 22b80a60d42..de96746e215 100644
--- a/compiler/rustc_passes/src/check_const.rs
+++ b/compiler/rustc_passes/src/check_const.rs
@@ -110,7 +110,7 @@ impl<'tcx> CheckConstVisitor<'tcx> {
 
             // However, we cannot allow stable `const fn`s to use unstable features without an explicit
             // opt-in via `rustc_allow_const_fn_unstable`.
-            let attrs = tcx.hir().attrs(tcx.hir().local_def_id_to_hir_id(def_id));
+            let attrs = tcx.hir().attrs(tcx.local_def_id_to_hir_id(def_id));
             attr::rustc_allow_const_fn_unstable(tcx.sess, attrs).any(|name| name == feature_gate)
         };