Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a bug in subst noticed in uwt #708

Merged
merged 1 commit into from
Jul 22, 2021
Merged

Conversation

jonludlam
Copy link
Member

Two fixes and a test:

  1. Slightly more recursion needed when expanding module type of
    expressions before compilation
  2. In the presence of module type of expressions and includes,
    we can get in the situation when we try to rename elements that
    have been prefixed. This is not an error, though it is unusual.
    we end up labelling the items with different idents, but that's
    fine because all expressions referencing them are using the
    prefixed path anyway.

The test is a much cut-down version of uwt that was originally
demonstrating the problem, manifesting as an internal Failure
begin raised.

Two fixes and a test:
1. Slightly more recursion needed when expanding `module type of`
   expressions before compilation
2. In the presence of `module type of` expressions and `includes`,
   we can get in the situation when we try to rename elements that
   have been prefixed. This is not an error, though it is unusual.
   we end up labelling the items with different idents, but that's
   fine because all expressions referencing them are using the
   prefixed path anyway.

The test is a much cut-down version of `uwt` that was originally
demonstrating the problem, manifesting as an internal `Failure`
begin raised
@jonludlam jonludlam merged commit 244b531 into ocaml:master Jul 22, 2021
jonludlam added a commit to jonludlam/opam-repository that referenced this pull request Oct 5, 2021
CHANGES:

Breaking changes
- Remove odoc-parser into a separate repository (@jonludlam, ocaml/odoc#700)

Additions
- OCaml 4.13 support (@Octachron, ocaml/odoc#687, ocaml/odoc#689)
- Better errors/warnings (@Julow, ocaml/odoc#692, ocaml/odoc#717, ocaml/odoc#720, ocaml/odoc#732)
- ModuleType 'Alias' support (@jonludlam, ocaml/odoc#703)
- Improved test suite (@lubega-simon, ocaml/odoc#697)
- Improved documentation (@lubega-simon, @jonludlam, ocaml/odoc#702, ocaml/odoc#733)
- Strengthen module types (@jonludlam, ocaml/odoc#731)

Bugs fixed
- `uwt` now can be documented (@jonludlam, ocaml/odoc#708)
- Fix resolution involving deeply nested substitutions (@jonludlam, ocaml/odoc#727)
- Fix off-by-one error in error reporting (@asavahista, ocaml/odoc#736)
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