Skip to content

Commit 22e6885

Browse files
committed
Remove WithOptconstParam.
1 parent fe3e383 commit 22e6885

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/constant.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ pub(crate) fn eval_mir_constant<'tcx>(
9191
),
9292
},
9393
ConstantKind::Unevaluated(mir::UnevaluatedConst { def, .. }, _)
94-
if fx.tcx.is_static(def.did) =>
94+
if fx.tcx.is_static(def) =>
9595
{
9696
span_bug!(constant.span, "MIR constant refers to static");
9797
}

0 commit comments

Comments
 (0)