Skip to content

gecko: Prevent ZSTs with ThinVec when in gecko-ffi mode. - #94

Merged
emilio merged 2 commits into
mainfrom
zst-landmines
Sep 16, 2026
Merged

emilio merged 2 commits into
mainfrom
zst-landmines

Conversation

@emilio

@emilio emilio commented Sep 15, 2026

Copy link
Copy Markdown
Collaborator

This prevents bugs like
https://bugzilla.mozilla.org/show_bug.cgi?id=2067654

Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=2072302

While it's possible to make this a compile-time panic rather than a
runtime panic, doing so is a breaking change, and makes testing a PITA,
since the only feature that I can think of that allows to test that
something shouldn't compile are doctests, and doctests don't work with
the gecko-ffi mode :/

@mxinden mxinden left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙏 thank you. I am in favor.

Comment thread src/lib.rs
@emilio
emilio merged commit 7fd48b6 into main Sep 16, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants