Remove sized check from Block translation

This commit is contained in:
Henno 2021-03-29 21:47:26 -04:00 committed by Eduard-Mihai Burtescu
parent 3a53968817
commit 9f25e92d60

View File

@ -338,11 +338,11 @@ fn trans_type_impl<'tcx>(
);
}
if !matches!(ty.abi, Abi::Aggregate { sized: true }) {
if !matches!(ty.abi, Abi::Aggregate { .. }) {
cx.tcx.sess.span_err(
span,
&format!(
"`#[spirv(block)]` can only be used for `Sized` aggregates, \
"`#[spirv(block)]` can only be used on aggregates, \
but `{}` has `Abi::{:?}`",
ty.ty, ty.abi,
),