Skip to content

Commit

Permalink
Adapt w.r.t. coq/coq#19943.
Browse files Browse the repository at this point in the history
  • Loading branch information
ppedrot committed Dec 17, 2024
1 parent 992c3a5 commit 210a25d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/declare_translation.ml
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ and declare_module ~opaque_access ?(continuation = ignore) ?name arity mb =
debug_string [`Module] "--> declare_module";
let open Declarations in
let mp = mb.mod_mp in
match mb.mod_expr, mb.mod_type with
match Declareops.mod_expr mb, mb.mod_type with
| Algebraic _, NoFunctor fields
| FullStruct, NoFunctor fields ->
let id = id_of_module_path mp in
Expand Down Expand Up @@ -299,7 +299,7 @@ and declare_module ~opaque_access ?(continuation = ignore) ?name arity mb =
end
| (lab, SFBmodule mb') when
match mb'.mod_type with NoFunctor _ ->
(match mb'.mod_expr with FullStruct | Algebraic _ -> true | _ -> false)
(match Declareops.mod_expr mb' with FullStruct | Algebraic _ -> true | _ -> false)
| _ -> false
->
declare_module ~opaque_access ~continuation arity mb'
Expand Down

0 comments on commit 210a25d

Please sign in to comment.