Skip to content

move size assert from const to tests#196

Merged
Veykril merged 2 commits intorust-analyzer:masterfrom
the8472:fix-layout-randomization
Jun 15, 2025
Merged

move size assert from const to tests#196
Veykril merged 2 commits intorust-analyzer:masterfrom
the8472:fix-layout-randomization

Conversation

@the8472
Copy link
Contributor

@the8472 the8472 commented Jun 14, 2025

Struct layouts aren't guaranteed and -Zrandomize-layout exercises this right. To compile the whole rust-lang/rust repo with layout randomization we can't have static asserts like these.

Fixes #168

the8472 added 2 commits June 14, 2025 14:53
Struct layouts aren't guaranteed and -Zrandomize-layout exercises this right.
To compile the whole rust-lang/rust repo with layout randomization we
can't have static asserts like these.
@Veykril Veykril merged commit b477a12 into rust-analyzer:master Jun 15, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

size assert not compatible with randomized struct layouts

2 participants