Skip to content

Commit

Permalink
refactor(ast): make AST structs repr C.
Browse files Browse the repository at this point in the history
  • Loading branch information
rzvxa authored and overlookmotel committed Aug 3, 2024
1 parent bcfa297 commit 941535c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/oxc_ast_macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ pub fn ast(_args: TokenStream, input: TokenStream) -> TokenStream {

let repr = match input {
syn::Item::Enum(ref enum_) => enum_repr(enum_),
// In future, we'll add `#[repr(C)]` to structs, but at present this is disabled
syn::Item::Struct(_) => TokenStream2::default(),
syn::Item::Struct(_) => quote!(#[repr(C)]),

_ => {
unreachable!()
Expand Down

0 comments on commit 941535c

Please sign in to comment.