Repository navigation
test(menhir): repro for inferred types that name the alias module - #16946
Merged
Merged
Conversation
shonfeder
marked this pull request as draft
November 8, 2026 03:22
#16464 changed how module opens are handled during inference, triggered during menhir rules. This offers a minimal repro of the related errors detected in the 3.25.0~alpha1 revdeps run at ocaml/opam-repository#31082. Signed-off-by: Shon Feder <[email protected]>
shonfeder
force-pushed
the
menhir-inference-shadowed-alias-module
branch
from
November 8, 2026 03:44
f3c2d8e to
df9ed06
Compare
62 tasks done
anmonteiro
marked this pull request as ready for review
November 8, 2026 05:25
anmonteiro
added a commit
to anmonteiro/dune
that referenced
this pull request
Nov 8, 2026
Keep normal module opens alongside the private inference alias so the short-path printer can resolve imported types through accessible paths. Update the reproducer from ocaml#16946 to check successful compilation and the inferred type. Signed-off-by: Antonio Nuno Monteiro <[email protected]>
anmonteiro
added a commit
to anmonteiro/dune
that referenced
this pull request
Nov 8, 2026
Keep normal module opens alongside the private inference alias so the short-path printer can resolve imported types through accessible paths. Update the reproducer from ocaml#16946 to check successful compilation and the inferred type. Signed-off-by: Antonio Nuno Monteiro <[email protected]>
anmonteiro
added a commit
that referenced
this pull request
Nov 8, 2026
Fix Menhir inference for imported types that refer to guarded alias modules. Fixes the regression from #16464 reproduced in #16946. 01a1b975-a696-7a32-bc0a-070cda37a5af --------- Signed-off-by: Antonio Nuno Monteiro <[email protected]>
anmonteiro
pushed a commit
that referenced
this pull request
Nov 8, 2026
…6946) #16464 changed how module opens are handled during inference, triggered during menhir rules. This offers a minimal repro of the related errors detected in the 3.25.0~alpha1 revdeps run at ocaml/opam-repository#31082. The related failure in CI is https://opam.ci.ocaml.org/github/ocaml/opam-repository/commit/6b2dc4292a7fe02b2ac183f092630bee19d98729/variant/compilers,4.14,dune.3.25.0~alpha1,revdeps,melange.3.0.0-414 @anmonteiro, since this is only affecting melange and apparently only on 4.14, and since (if my debugging is correct) it follows from a change you introduced, I think you are best positioned to evaluate the impact. Is this something we should fix and backport before releasing #16520 do you think? Is the needed fix clear to you? Signed-off-by: Shon Feder <[email protected]> (cherry picked from commit fe9ecca) Signed-off-by: Antonio Nuno Monteiro <[email protected]>
anmonteiro
added a commit
that referenced
this pull request
Nov 8, 2026
Fix Menhir inference for imported types that refer to guarded alias modules. Fixes the regression from #16464 reproduced in #16946. 01a1b975-a696-7a32-bc0a-070cda37a5af --------- Signed-off-by: Antonio Nuno Monteiro <[email protected]> (cherry picked from commit 0e05bfa) Signed-off-by: Antonio Nuno Monteiro <[email protected]>
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.
#16464 changed how module opens are handled during inference, triggered during menhir rules. This offers a minimal repro of the related errors detected in the 3.25.0~alpha1 revdeps run at ocaml/opam-repository#31082.
The related failure in CI is https://opam.ci.ocaml.org/github/ocaml/opam-repository/commit/6b2dc4292a7fe02b2ac183f092630bee19d98729/variant/compilers,4.14,dune.3.25.0~alpha1,revdeps,melange.3.0.0-414
@anmonteiro, since this is only affecting melange and apparently only on 4.14, and since (if my debugging is correct) it follows from a change you introduced, I think you are best positioned to evaluate the impact.
Is this something we should fix and backport before releasing #16604 do you think? Is the needed fix clear to you?