about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2022-05-08 15:53:19 +0200
committerCamille GILLOT <gillot.camille@gmail.com>2023-04-20 17:48:32 +0000
commit22e6885de0b02097eb6a8599c70df7925601ddc1 (patch)
tree4250661d5e56de800e4dfa34cfdd4b57b4ebda2d
parentfe3e38306fd8a367cbe0c968bfdb61288f67991d (diff)
downloadrust-22e6885de0b02097eb6a8599c70df7925601ddc1.tar.gz
rust-22e6885de0b02097eb6a8599c70df7925601ddc1.zip
Remove WithOptconstParam.
-rw-r--r--src/constant.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/constant.rs b/src/constant.rs
index e87f4e25891..aacf37bb5b7 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");
         }