mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2024-11-21 22:34:34 +00:00
Remove sized check from Block translation
This commit is contained in:
parent
3a53968817
commit
9f25e92d60
@ -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,
|
||||
),
|
||||
|
Loading…
Reference in New Issue
Block a user