Skip to content

fix(module_trie): allow setting nested path#13103

Merged
anmonteiro merged 1 commit intoocaml:mainfrom
anmonteiro:anmonteiro/set-if-empty
Dec 29, 2025
Merged

fix(module_trie): allow setting nested path#13103
anmonteiro merged 1 commit intoocaml:mainfrom
anmonteiro:anmonteiro/set-if-empty

Conversation

@anmonteiro
Copy link
Copy Markdown
Collaborator

previously: Module_trie.set Module_trie.empty ["a"; "b"] x would be silently ignored

Signed-off-by: Antonio Nuno Monteiro <anmonteiro@gmail.com>
@Alizter
Copy link
Copy Markdown
Collaborator

Alizter commented Dec 29, 2025

Would it be worth setting up some unit tests for tries?

@anmonteiro anmonteiro merged commit aebdf27 into ocaml:main Dec 29, 2025
30 checks passed
@anmonteiro anmonteiro deleted the anmonteiro/set-if-empty branch December 29, 2025 10:50
anmonteiro added a commit that referenced this pull request Dec 30, 2025
depends on #13100 and #13103

### Summary:

- `Ml_sources` now indexes the `ocamllex` stanzas and deduces the
targets based on that
- Dune records the modules that are generated by `ocamllex` such that we
can query their source information when generating corresponding rules.

Signed-off-by: Antonio Nuno Monteiro <anmonteiro@gmail.com>
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.

3 participants