Skip to content

[pull] master from rust-lang:master#124

Merged
pull[bot] merged 2 commits into
Arstman:masterfrom
rust-lang:master
Jun 23, 2026
Merged

[pull] master from rust-lang:master#124
pull[bot] merged 2 commits into
Arstman:masterfrom
rust-lang:master

Conversation

@pull

@pull pull Bot commented Jun 23, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

DanielEScherzer and others added 2 commits June 23, 2026 13:10
Make the code actual compile by defining types, not using a variable named
`struct`, adding `mut` where needed, etc.

Properly handle the `max()` alignment call returning `Option<usize>` rather
than `usize` by using 1 for the alignment if there are no fields.

Add comments with the parts of the algorithm that are represented by the
statements.

Also include a runnable example hidden by default.
type-layout: rewrite `#[repr(C)]` struct layout algorithm
@pull pull Bot locked and limited conversation to collaborators Jun 23, 2026
@pull pull Bot added the ⤵️ pull label Jun 23, 2026
@pull pull Bot merged commit e097e1b into Arstman:master Jun 23, 2026
0 of 4 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants