about summary refs log tree commit diff
path: root/compiler/rustc_passes/src/check_const.rs
diff options
context:
space:
mode:
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 7567fb075cc..0e4df831f3f 100644
--- a/compiler/rustc_passes/src/check_const.rs
+++ b/compiler/rustc_passes/src/check_const.rs
@@ -88,7 +88,7 @@ pub(crate) fn provide(providers: &mut Providers) {
 
 fn check_item<'tcx>(tcx: TyCtxt<'tcx>, id: hir::ItemId) {
     let _: Option<_> = try {
-        if !matches!(tcx.hir().def_kind(id.def_id), DefKind::Impl) {
+        if !matches!(tcx.def_kind(id.def_id), DefKind::Impl) {
             None?
         }