Repository navigation
Conversation
Why:
Recent removals left definitions without callers, which no warning
reports because they are exported or in a module without an interface:
Cmi_format.output_cmi, the always-None cmt_interface_digest, the read of
a cmt after an embedded cmi (unreachable since the magic bumps of #8805
and #8928), Oprint.out_type_extension, Ext_namespace.try_split_module_name
and Ast_untagged_variants.block_type_can_be_undefined. Comments that
promised older .cmt layouts, a JSX transform rejection that #8944 made a
deprecation, and a TODO for a removed warning are corrected, and the
empty rescript_compiler_main.mli and three unused test inputs removed.
Review: Why does the cmt magic number change? Removing cmt_interface_digest changes the marshalled cmt_infos record, so .cmt files of the previous layout must be rejected rather than misread: T047 becomes T048.
Signed-off-by: Christoph Knittel <ck@cca.io>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xk6AeCYpCK4SZRtHYKHGoe
Semantic Diff1 commit · Full page Remove dead code, stale comments and unused test inputs8427be4 · Christoph Knittel with Claude Opus 5.5 · Oct 23, 2026
Review
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #8991 +/- ##
==========================================
+ Coverage 81.22% 81.24% +0.01%
==========================================
Files 457 457
Lines 63862 63833 -29
==========================================
- Hits 51875 51862 -13
+ Misses 11987 11971 -16
🚀 New features to boost your workflow:
|
rescript
@rescript/belt
@rescript/darwin-arm64
@rescript/linux-arm64
@rescript/linux-x64
@rescript/runtime
@rescript/win32-x64
commit: |
|
Developer playground preview: https://rescript-lang.github.io/rescript/dev-playground/?version=pr-8991 |
|
@codex review |
Codex Review SummaryThis 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. You're on a roll. 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". |
Fixes #8977.
This removes the leftovers the issue lists:
.cmtcode for the embedded.cmi.Cmi_format.output_cmihad no caller and is removed. The comment oncreate_cmino longer sayssave_cmtcalls it.cmt_interface_digestwas alwaysNoneand never read, so the field is removed; the.cmtmagic number moves from T047 to T048 because the marshalled record changes.Cmt_format.readno longer tries to read a cmt after an embedded cmi, which the earlier magic bumps made unreachable, and the docs incmt_format.mli/cmt_format_common.mlno longer promise that older layouts are read.Oprint.out_type_extension, and theRes_outcome_printerfunction that only set it, are removed.Ext_namespace.try_split_module_name, and its ounit case, are removed.Ast_untagged_variants.block_type_can_be_undefinedis removed.Ast_helper.Jsx_component.takenow says that the JSX transform takes a payload on a lone@react.componentWithPropswith a deprecation warning (Accept a payload on @react.componentWithProps with a deprecation warning #8944) and rejects the other leftovers.tests/build_tests/regexp_statement_formatting/rescript.json,tests/build_tests/option_transitive_dependency/rescript.json(both tests runbscwith explicit flags) andrewatch-ocaml/tests/failure/Broken.invalid(onlyBroken.fixedis read).(*TODO: add +10*)inbsc_warnings.ml, which refers to a removed warning, and the emptycompiler/bsc/rescript_compiler_main.mli.🤖 Generated with Claude Code
https://claude.ai/code/session_01Xk6AeCYpCK4SZRtHYKHGoe