Repository navigation
Conversation
ChangelogNo changelog entry. Semantic Diff1 commit · Full page Test cross-module inlining against a twin that isn't inlined9392b02 · cknitt + Claude · Dec 05, 2026, 10:16 UTC
Review
|
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Can't wait for the next one! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
998c38f to
42fb267
Compare
✅ Compiler benchmarksAllocated wordsIn total: 661,170,021 → 661,170,384 (±0.00%). Generated projects: 628,260,820 → 628,261,219 (±0.00%). None of the 265 benchmarks changed by 0.1% or more. InstructionsIn total: 8,946,906,545 → 8,946,906,545 (±0.00%). None of the 33 benchmarks changed by 0.1% or more. Output sizeIn total: 27,780,923 → 27,780,923 (±0.00%). None of the 13 benchmarks changed by 0.1% or more. Pull request 9392b02 compared with base 6f8a5ab in this run. |
rescript
@rescript/belt
@rescript/darwin-arm64
@rescript/linux-arm64
@rescript/linux-x64
@rescript/runtime
@rescript/win32-x64
commit: |
42fb267 to
769e026
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. 🎉 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
6a53c60 to
47909af
Compare
47909af to
71fdc02
Compare
Why:
The tests of each inlining change check its own repros. This test
calls helpers twice the same way, once `@inline` and once
`@inline(never)`, and expects the same result. Its cases are options
at payload types that can and can't be `undefined` (`unit`, nested
options, `Nullable`, an unboxed type with an `undefined` case, `'a`),
the order of arguments with side effects, and a `Some` of a ref that
a callback assigns after the call.
Review: Why only these cases? They are the ones that fail when the
compiler is broken on purpose. Taking every option payload as unable to
be `undefined` fails 10 of them, binding inlined arguments in reverse
order fails the order case, and substituting any pure `Some` payload
fails the two `Some` cases. Cases that failed under no such change were
removed. Every `@inline` helper is inlined in the output, and each
`@inline(never)` one is called.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kbf3gHZYwA1rq7zbk3dhQq
Signed-off-by: Christoph Knittel <ck@cca.io>
71fdc02 to
9392b02
Compare
A differential test for cross-module inlining.
inline_twin_lib.resdefines each helper twice with the same body, once@inlineand once@inline(never), andinline_twin_test.resruns the same cases against both and expects the same results.The cases are options at payload types that can and can't be
undefined(unit, nested options,Nullable, an unboxed type with anundefinedcase,'a), the order of arguments with side effects, and aSomeof a ref that a callback assigns after the call.Each case fails when the compiler is broken on purpose: taking every option payload as unable to be
undefinedfails 10 of them, binding inlined arguments in reverse order fails the order case, and substituting any pureSomepayload fails the twoSomecases. Cases that failed under no such change were left out.Test only, so no changelog fragment.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Kbf3gHZYwA1rq7zbk3dhQq