Skip to content

Ensure new type is repr(transparent)#318

Merged
khuey merged 1 commit intogimli-rs:masterfrom
kayabaNerve:patch-1
Apr 22, 2026
Merged

Ensure new type is repr(transparent)#318
khuey merged 1 commit intogimli-rs:masterfrom
kayabaNerve:patch-1

Conversation

@kayabaNerve
Copy link
Copy Markdown
Contributor

The immediately following code performs a cast from the new type to the old type, which repr(transparent) guarantees the safety of. I'm not convinced this is guaranteed to be safe with the default repr(Rust).

The immediately following code performs a cast from the new type to the old type, which `repr(transparent)` guarantees the safety of. I'm not convinced this is _guaranteed_ to be safe with the default `repr(Rust)`.
@khuey
Copy link
Copy Markdown
Collaborator

khuey commented Apr 22, 2026

Yeah I think you're correct. Thanks!

@khuey khuey merged commit 0aabe55 into gimli-rs:master Apr 22, 2026
6 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