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 a4fa5bb commit c5c4fa8Copy full SHA for c5c4fa8
src/librustc_mir/const_eval/eval_queries.rs
@@ -124,13 +124,13 @@ pub(super) fn op_to_const<'tcx>(
124
ConstValue::ByRef { alloc, offset: ptr.offset }
125
}
126
Scalar::Raw { data, .. } => {
127
+ assert!(mplace.layout.is_zst());
128
assert_eq!(
129
data,
130
mplace.layout.align.abi.bytes().into(),
131
"this MPlaceTy must come from `try_as_mplace` being used on a zst, so we know what
132
value this integer address must have",
133
);
- assert!(mplace.layout.is_zst());
134
ConstValue::Scalar(Scalar::zst())
135
136
};
0 commit comments