Skip to content

Commit

Permalink
Merge pull request #102 from maximedenes/fix-declaremods
Browse files Browse the repository at this point in the history
Use `Declaremods.start_module` instead of low-level Lib API
  • Loading branch information
thery authored Oct 3, 2022
2 parents b1822fd + 215c374 commit 308614a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/declare_translation.ml
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,7 @@ and declare_module ?(continuation = ignore) ?name arity mb =
let id_R = match name with Some id -> id | None -> translate_id arity id in
debug_string [`Module] (Printf.sprintf "start module: '%s' (translating '%s')."
(Names.Id.to_string id_R) (Names.Id.to_string id));
let mp_R = Global.start_module id_R in
(* I have no idea what I'm doing here : *)
let fs = Summary.freeze_summaries ~marshallable:false in
let _ = Lib.start_module None id_R mp_R fs in
let _mp_R = Declaremods.start_module None id_R [] (Declaremods.Check []) in
list_continuation
(fun _ ->
debug_string [`Module] (Printf.sprintf "end module: '%s'." (Names.Id.to_string id_R));
Expand Down

0 comments on commit 308614a

Please sign in to comment.