Skip to content

Commit

Permalink
Remove WithOptconstParam.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjgillot committed Apr 20, 2023
1 parent fe3e383 commit 22e6885
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/constant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit 22e6885

Please sign in to comment.