Skip to content

Commit fd74dc1

Browse files
committed
Fix handling of instance names in Persistent_env
This change was already made in flambda-backend but looks to have been inadvertently dropped during a merge.
1 parent 0514f08 commit fd74dc1

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/ocaml/typing/persistent_env.ml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -759,9 +759,6 @@ type 'a sig_reader =
759759
Checks that OCaml source is allowed to refer to this module. *)
760760

761761
let acknowledge_pers_struct penv short_path_comps modname pers_name val_of_pers_sig =
762-
if modname.Global_module.Name.args <> [] then
763-
Misc.fatal_errorf "TODO: Unsupported instance name: %a"
764-
Global_module.Name.print modname;
765762
let {persistent_structures; _} = penv in
766763
let import = pers_name.pn_import in
767764
let global = pers_name.pn_global in

0 commit comments

Comments
 (0)