-
-
Notifications
You must be signed in to change notification settings - Fork 723
Open
Copy link
Labels
A-formatterArea - FormatterArea - Formatter
Description
oxc/crates/oxc_formatter/src/formatter/format_element/mod.rs
Lines 19 to 47 in 07e7677
| #[cfg(debug_assertions)] | |
| const _: () = { | |
| if cfg!(target_pointer_width = "64") { | |
| assert!( | |
| size_of::<FormatElement>() == 40, | |
| "`FormatElement` size exceeds 40 bytes, expected 40 bytes in 64-bit platforms" | |
| ); | |
| } else { | |
| assert!( | |
| size_of::<FormatElement>() == 24, | |
| "`FormatElement` size exceeds 24 bytes, expected 24 bytes in 32-bit platforms" | |
| ); | |
| } | |
| }; | |
| #[cfg(not(debug_assertions))] | |
| const _: () = { | |
| if cfg!(target_pointer_width = "64") { | |
| assert!( | |
| size_of::<FormatElement>() == 24, | |
| "`FormatElement` size exceeds 24 bytes, expected 24 bytes in 64-bit platforms" | |
| ); | |
| } else { | |
| assert!( | |
| size_of::<FormatElement>() == 16, | |
| "`FormatElement` size exceeds 16 bytes, expected 16 bytes in 32-bit platforms" | |
| ); | |
| } | |
| }; |
Our playground fails to build.
https://github.com/oxc-project/playground/actions/runs/19424010531/job/55567191331
To reproduce, cargo check --target wasm32-wasip1-threads --release in oxc_formatter.
Metadata
Metadata
Assignees
Labels
A-formatterArea - FormatterArea - Formatter