Skip to content

evaluation panicked: FormatElement size exceeds 24 bytes when building oxlint version 1.29.0 on 32-bit x86 GNU/Linux #15984

@robertkirkman

Description

@robertkirkman

Hi, I wanted to use oxlint version 1.29.0 on 32-bit x86 GNU/Linux, but this error occurred:

error[E0080]: evaluation panicked: `FormatElement` size exceeds 24 bytes, expected 24 bytes in 32-bit platforms
  --> crates/oxc_formatter/src/formatter/format_element/mod.rs:29:9
   |
29 | /         assert!(
30 | |             size_of::<FormatElement>() == 24,
31 | |             "`FormatElement` size exceeds 24 bytes, expected...
32 | |         );
   | |_________^ evaluation of `formatter::format_element::_` failed here

This error does not occur with oxlint version 1.27.0.

I would guess this error might be related to this PR:

oxlint version: 1.29.0 and git main

Operating system:

$ cat /etc/os-release 
PRETTY_NAME="Debian GNU/Linux 13 (trixie)"
NAME="Debian GNU/Linux"
VERSION_ID="13"
VERSION="13 (trixie)"
VERSION_CODENAME=trixie
DEBIAN_VERSION_FULL=13.1
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
$ uname -a
Linux debian 6.1.0-32-686-pae #1 SMP PREEMPT_DYNAMIC Debian 6.1.129-1 (2025-03-06) i686 GNU/Linux
$ cargo --version
cargo 1.91.1 (ea2d97820 2025-10-10)
$ rustc --version
rustc 1.91.1 (ed61e7d7e 2025-11-07)
$ 

Metadata

Metadata

Assignees

Labels

Type

Priority

None yet

Effort

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions