about summary refs log tree commit diff
path: root/src/constant.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/constant.rs')
-rw-r--r--src/constant.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/constant.rs b/src/constant.rs
index bc2867a625c..bf5d29c16f6 100644
--- a/src/constant.rs
+++ b/src/constant.rs
@@ -91,7 +91,7 @@ pub(crate) fn eval_mir_constant<'tcx>(
             ),
         },
         ConstantKind::Unevaluated(mir::UnevaluatedConst { def, .. }, _)
-            if fx.tcx.is_static(def.did) =>
+            if fx.tcx.is_static(def) =>
         {
             span_bug!(constant.span, "MIR constant refers to static");
         }