mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Use repr(transparent) for single-tag union glue
This commit is contained in:
parent
e917f1066f
commit
641f089384
1 changed files with 1 additions and 1 deletions
|
@ -576,7 +576,7 @@ fn add_tag_union(
|
|||
None,
|
||||
target_info,
|
||||
format!(
|
||||
r#"
|
||||
r#"#[repr(transparent)]
|
||||
pub struct {name} {{
|
||||
pointer: *mut {union_name},
|
||||
}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue