Repository navigation
Fix scalar I/O, constant lowering, and frontend contracts - #741
Merged
LunaStev merged 3 commits intoSep 25, 2026
Merged
Conversation
Signed-off-by: LunaStev <[email protected]>
Signed-off-by: LunaStev <[email protected]>
Signed-off-by: LunaStev <[email protected]>
Open
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
Fix incorrect scalar I/O, global constant conversions, integer matches, and method calls. For example, a
u128value above 64 bits now prints and reads exactly, and widening au8constant containing 255 tou64preserves 255.Motivation
Closes #724, closes #725, closes #726, closes #727, closes #728, closes #729.
Closes #733, closes #734, closes #735, closes #736, closes #737.
Closes #351, closes #539, closes #541.
Target and compatibility impact
Implements the approved format rules: unmatched braces are literal text, bool input accepts numeric 0/1, and existing integer widths through 1024 bits receive exact I/O support. Invalid integer input exits with status 1 before storing the invalid value. Balanced unsupported placeholders and untyped integer output literals outside the default i32 range produce frontend diagnostics.
Frontend validation and typed match values remain backend-independent. LLVM integer I/O reuses the existing printf/scanf runtime dependencies, uses width-exact conversion helpers, and avoids wide division libcalls. Method symbol changes are internal; no new public C ABI or toolchain selection policy is introduced. The std sources and compatibility revision are unchanged.
Validation
Rust checks used
LLVM_SYS_211_PREFIX=/usr/lib64/llvm21and--jobs 2:Checklist
Signed-off-byline.std/.