mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 04:08:41 +00:00
refactor(ast_codegen): line breaks between types in layout assertions (#4781)
Small style nit. Add line breaks between types in generated layout assertions, to make the file easier to read.
This commit is contained in:
parent
966fcc925a
commit
d4a3be86ed
2 changed files with 517 additions and 0 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -80,6 +80,7 @@ fn assert_type(ty: &Type, def: &TypeDef) -> (TokenStream, TokenStream) {
|
|||
|
||||
fn assert_size_align(ty: &Type, size: usize, align: usize) -> TokenStream {
|
||||
quote! {
|
||||
///@@
|
||||
assert!(size_of::<#ty>() == #size);
|
||||
assert!(align_of::<#ty>() == #align);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue