Repository navigation
tools/aurora-bindgen: fix the layout checks without rustfmt - #2157
Merged
RyanTheTide merged 1 commit intoNov 17, 2026
Merged
RyanTheTide merged 1 commit into
RyanTheTide merged 1 commit into
Conversation
bindgen emits valid unformatted Rust when rustfmt is unavailable. Accept whitespace around the unconditional const assertion and reject both formatted and unformatted test attributes. Keep the C/Rust compilation and layout assertions unchanged. Assisted-by: LLM Signed-off-by: Kallisti <[email protected]> Signed-off-by: Scott Jones <[email protected]>
RyanTheTide
merged commit Nov 17, 2026
6587122
into
aurora-silicon:integration/aurora
7 checks passed
This was referenced Nov 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
bindgen emits valid unformatted Rust when rustfmt is not available. The layout test now accepts whitespace around the const assertion and rejects both formatted and unformatted test attributes. The compile and layout assertions are unchanged.
Evidence
a7dd26e6d60ewith the 7.3 package config, LLVM 18 and Rust 1.85:a7dd26e6plus all 13 branches of this set (before the three small fix-up commits) booted on an M3 MacBook Air (J613), a Neo (J700) and an M1 Pro with no regressions against their baselines (on the M1 Pro, only the checks already known to differ: GPU name and DRAM OPP), and a 25-minute GPU soak was clean on all three. No M3 Pro, M3 Max, J504, J615 or M4 Pro ran this kernel.Merge Danger
Door: two-way
Blast Radius: tooling
One line in tools/aurora-bindgen/test.py.
🤖 Generated with Claude Code