mirror of
https://github.com/roc-lang/roc.git
synced 2024-11-12 23:50:20 +03:00
Use repr(transparent) for single-tag union glue
This commit is contained in:
parent
e917f1066f
commit
641f089384
@ -576,7 +576,7 @@ fn add_tag_union(
|
||||
None,
|
||||
target_info,
|
||||
format!(
|
||||
r#"
|
||||
r#"#[repr(transparent)]
|
||||
pub struct {name} {{
|
||||
pointer: *mut {union_name},
|
||||
}}
|
||||
|
Loading…
Reference in New Issue
Block a user