Skip to content

Commit e3eaef1

Browse files
Update lib/module_loader.ml
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Signed-off-by: Jonathan D.A. Jewell <6759885+hyperpolymath@users.noreply.github.com>
1 parent c62b0d1 commit e3eaef1

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎lib/module_loader.ml‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,11 @@ let clear_cache (loader : t) : unit =
281281
for callers that flatten an already-loaded program directly. Local decls
282282
in [prog.prog_decls] always win over imported ones.
283283
284-
Selective imports also carry referenced helpers, including private ones,
285-
and their enum dependencies. Public enums named by type or constructor
284+
Selective imports carry referenced helpers, including private ones, when
285+
[find_free_vars] detects them. That walker is partial: dependencies
286+
referenced only in record spreads, shorthand record fields or qualified
287+
constructors may be omitted. Public enums named directly by type or
288+
constructor in a selective import
286289
are included; enums containing only [Some], [None], [Ok] and [Err] are
287290
excluded from this direct selection because the runtime supplies them.
288291

0 commit comments

Comments
 (0)