This commit is contained in:
gnzlbg 2019-09-25 10:34:44 +02:00
parent 97ce904340
commit 02b3234a77

View File

@ -248,7 +248,8 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
} else {
throw_ub_format!(
"Inserting `{}` with size `{}` to a vector element place of size `{}`",
scalar.layout.ty, scalar.layout.size.bytes(), vector[index].layout.size.bytes()
scalar.layout.ty,
scalar.layout.size.bytes(), vector[index].layout.size.bytes()
);
}
self.write_vector(vector, dest)?;