We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe3e383 commit 22e6885Copy full SHA for 22e6885
src/constant.rs
@@ -91,7 +91,7 @@ pub(crate) fn eval_mir_constant<'tcx>(
91
),
92
},
93
ConstantKind::Unevaluated(mir::UnevaluatedConst { def, .. }, _)
94
- if fx.tcx.is_static(def.did) =>
+ if fx.tcx.is_static(def) =>
95
{
96
span_bug!(constant.span, "MIR constant refers to static");
97
}
0 commit comments