Use repr(transparent) for single-tag union glue

This commit is contained in:
Richard Feldman 2022-08-26 09:18:15 -04:00
parent e917f1066f
commit 641f089384
No known key found for this signature in database
GPG Key ID: BAF1322FA6809A13

View File

@ -576,7 +576,7 @@ fn add_tag_union(
None,
target_info,
format!(
r#"
r#"#[repr(transparent)]
pub struct {name} {{
pointer: *mut {union_name},
}}