Skip to content

Commit

Permalink
Add line breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Aug 3, 2024
1 parent 2b74a66 commit d07ce36
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/oxc_ast/src/generated/assert_layouts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1124,6 +1124,7 @@ const _: () = {
assert!(offset_of!(JSXText, span) == 0usize);
assert!(offset_of!(JSXText, value) == 8usize);
};

#[cfg(target_pointer_width = "32")]
const _: () = {
assert!(size_of::<BooleanLiteral>() == 12usize);
Expand Down Expand Up @@ -2243,5 +2244,6 @@ const _: () = {
assert!(offset_of!(JSXText, span) == 0usize);
assert!(offset_of!(JSXText, value) == 8usize);
};

#[cfg(not(any(target_pointer_width = "64", target_pointer_width = "32")))]
const _: () = panic!("Platforms with pointer width other than 64 or 32 bit are not supported");
4 changes: 4 additions & 0 deletions tasks/ast_codegen/src/generators/assert_layouts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,12 @@ impl Generator for AssertLayouts {

#[cfg(target_pointer_width = "64")]
const _: () = { #(#assertions_64)* };
endl!();

#[cfg(target_pointer_width = "32")]
const _: () = { #(#assertions_32)* };
endl!();

#[cfg(not(any(target_pointer_width = "64", target_pointer_width = "32")))]
const _: () = panic!("Platforms with pointer width other than 64 or 32 bit are not supported");
},
Expand Down

0 comments on commit d07ce36

Please sign in to comment.