diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2022-05-08 15:53:19 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2023-04-20 17:48:32 +0000 |
| commit | 22e6885de0b02097eb6a8599c70df7925601ddc1 (patch) | |
| tree | 4250661d5e56de800e4dfa34cfdd4b57b4ebda2d | |
| parent | fe3e38306fd8a367cbe0c968bfdb61288f67991d (diff) | |
| download | rust-22e6885de0b02097eb6a8599c70df7925601ddc1.tar.gz rust-22e6885de0b02097eb6a8599c70df7925601ddc1.zip | |
Remove WithOptconstParam.
| -rw-r--r-- | src/constant.rs | 2 |
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"); } |
