This commit is contained in:
Folkert 2023-05-14 13:08:43 +02:00
parent e9c77a1d30
commit c449582951
No known key found for this signature in database
GPG Key ID: 1F17F6FFD112B97C

View File

@ -1290,10 +1290,7 @@ fn symbol_layout_reusability<'a>(
/** /**
Check if a union layout can be reused. by verifying if the tag is not nullable. Check if a union layout can be reused. by verifying if the tag is not nullable.
*/ */
fn can_reuse_union_layout_tag<'a>( fn can_reuse_union_layout_tag(union_layout: UnionLayout, tag_id_option: Option<Tag>) -> Reuse {
union_layout: UnionLayout<'a>,
tag_id_option: Option<Tag>,
) -> Reuse<'a> {
match union_layout { match union_layout {
UnionLayout::NonRecursive(_) => Reuse::Nonreusable, UnionLayout::NonRecursive(_) => Reuse::Nonreusable,
// Non nullable union layouts // Non nullable union layouts