We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7889a32 commit f3e8f6dCopy full SHA for f3e8f6d
src/constant.rs
@@ -124,7 +124,9 @@ pub(crate) fn codegen_constant<'tcx>(
124
};
125
let const_val = match const_.val {
126
ConstKind::Value(const_val) => const_val,
127
- ConstKind::Unevaluated(ty::Unevaluated { def, substs, promoted }) if fx.tcx.is_static(def.did) => {
+ ConstKind::Unevaluated(ty::Unevaluated { def, substs, promoted })
128
+ if fx.tcx.is_static(def.did) =>
129
+ {
130
assert!(substs.is_empty());
131
assert!(promoted.is_none());
132
0 commit comments