Skip to content

Conversation

zyp
Copy link
Contributor

@zyp zyp commented Oct 2, 2025

Fixes #2618

@zyp zyp force-pushed the u64_const branch 5 times, most recently from 93cea86 to d4a2756 Compare October 2, 2025 12:58
Copy link
Contributor

@emilio emilio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine, but I think we should document the setup because we're doing something rather subtle. Please double-check this is well defined in Rust (I can't do the digging right now but I could later if you need me to).

Alternatively, we need to change as_int to be a bit more complicated (something like enum IntEvaluationResult { Signed(i64), Unsigned(u64), None } or so).

Thanks!

@zyp zyp requested a review from emilio October 2, 2025 13:43
Copy link
Contributor

@emilio emilio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks :)

@emilio emilio added this pull request to the merge queue Oct 2, 2025
Merged via the queue into rust-lang:main with commit e2460d9 Oct 2, 2025
51 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.

Generating uint64_t value fails when the value is greater than 0x7fffffffffffffff and has braces.
2 participants