Remove WithOptconstParam.
This commit is contained in:
parent
fe3e38306f
commit
22e6885de0
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue