Skip to content

Commit

Permalink
fix: don't repr(C) structures for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
rzvxa committed Jul 30, 2024
1 parent 13025a4 commit b2fdf20
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/oxc_ast_macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ fn enum_repr(enum_: &syn::ItemEnum) -> TokenStream2 {
pub fn ast(_args: TokenStream, input: TokenStream) -> TokenStream {
let input = syn::parse_macro_input!(input as syn::Item);

let repr = match &input {
syn::Item::Enum(enum_) => enum_repr(enum_),
syn::Item::Struct(_) => quote!(#[repr(C)]),
let repr = match input {
syn::Item::Enum(ref enum_) => enum_repr(enum_),
syn::Item::Struct(_) => TokenStream2::default(),

_ => {
unreachable!()
Expand Down

0 comments on commit b2fdf20

Please sign in to comment.