Skip to content

fix(menhir): bound private inference helper names - #213

Closed
anmonteiro wants to merge 6 commits into
prototype/menhir-inference-alias-cmifrom
fix/menhir-inference-helper-name-length
Closed

anmonteiro wants to merge 6 commits into
prototype/menhir-inference-alias-cmifrom
fix/menhir-inference-helper-name-length

Conversation

@anmonteiro

Copy link
Copy Markdown
Owner

Use digest-based names and numeric collision suffixes to keep private Menhir inference helper filenames short.

Stacked on ocaml#16464; restores the long-name regression from ocaml#16480. The existing ocaml#16481 fixture also passes, but this does not add external-module freshness checks.

@anmonteiro
anmonteiro force-pushed the prototype/menhir-inference-alias-cmi branch from afdc8be to b6a2c56 Compare September 26, 2026 22:52
Test coverage: ocaml#16482.

---------

Signed-off-by: Antonio Nuno Monteiro <[email protected]>
Fix Menhir inference for qualified module group interfaces by opening a
private alias interface, preserving logical dependency lookup.

Fixes ocaml#8989. Continues #199; alternative to ocaml#16427 and
#195.

---------

Signed-off-by: Antonio Nuno Monteiro <[email protected]>
Derive helper names from a digest of the mock module’s logical path and
retry local collisions with numeric suffixes. Restore the long-name and
external-name regressions from ocaml#16464 and retain local collision coverage.

Signed-off-by: Antonio Nuno Monteiro <[email protected]>
@anmonteiro
anmonteiro force-pushed the fix/menhir-inference-helper-name-length branch from 325e313 to 9b18a9c Compare September 27, 2026 05:29
anmonteiro added a commit to ocaml/dune that referenced this pull request Sep 27, 2026
Use digest-based names for private Menhir inference helpers to fix long
filenames and the recorded external-name collision.

Follow-up to #16464; restores the regressions from #16480 and #16481.
Continues anmonteiro#213.

---------

Signed-off-by: Antonio Nuno Monteiro <[email protected]>
@anmonteiro

Copy link
Copy Markdown
Owner Author

Superseded by ocaml#16489, now merged upstream.

@anmonteiro anmonteiro closed this Sep 27, 2026
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.

1 participant