@@ -215,8 +215,8 @@ and id_of_module_path mp =
215
215
and declare_module ~opaque_access ?(continuation = ignore) ?name arity mb =
216
216
debug_string [`Module ] " --> declare_module" ;
217
217
let open Declarations in
218
- let mp = mb .mod_mp in
219
- match Declareops . mod_expr mb, mb .mod_type with
218
+ let mp = Mod_declarations . mod_mp mb in
219
+ match Mod_declarations . mod_expr mb, Mod_declarations . mod_type mb with
220
220
| Algebraic _, NoFunctor fields
221
221
| FullStruct , NoFunctor fields ->
222
222
let id = id_of_module_path mp in
@@ -230,7 +230,7 @@ and declare_module ~opaque_access ?(continuation = ignore) ?name arity mb =
230
230
ignore (Declaremods. end_module () ); continuation () )
231
231
(fun continuation -> function
232
232
| (lab , SFBconst cb ) when (match cb.const_body with OpaqueDef _ -> false | Undef _ -> true | _ -> false ) ->
233
- let cst = Mod_subst. constant_of_delta_kn mb .mod_delta (Names.KerName. make mp lab) in
233
+ let cst = Mod_subst. constant_of_delta_kn ( Mod_declarations . mod_delta mb) (Names.KerName. make mp lab) in
234
234
if try ignore (Relations. get_constant arity cst); true with Not_found -> false then
235
235
continuation ()
236
236
else
@@ -254,7 +254,7 @@ and declare_module ~opaque_access ?(continuation = ignore) ?name arity mb =
254
254
let poly = Declareops. constant_is_polymorphic cb in
255
255
let scope = Locality. (Global ImportDefaultBehavior ) in
256
256
let kind = Decls. (IsDefinition Definition ) in
257
- let cst = Mod_subst. constant_of_delta_kn mb .mod_delta (Names.KerName. make mp lab) in
257
+ let cst = Mod_subst. constant_of_delta_kn ( Mod_declarations . mod_delta mb) (Names.KerName. make mp lab) in
258
258
if try ignore (Relations. get_constant arity cst); true with Not_found -> false then
259
259
continuation ()
260
260
else
@@ -279,7 +279,7 @@ and declare_module ~opaque_access ?(continuation = ignore) ?name arity mb =
279
279
let env = Global. env () in
280
280
let evd = Evd. from_env env in
281
281
let evdr = ref evd in
282
- let mut_ind = Mod_subst. mind_of_delta_kn mb .mod_delta (Names.KerName. make mp lab) in
282
+ let mut_ind = Mod_subst. mind_of_delta_kn ( Mod_declarations . mod_delta mb) (Names.KerName. make mp lab) in
283
283
let ind = (mut_ind, 0 ) in
284
284
if try ignore (Relations. get_inductive arity ind); true with Not_found -> false then
285
285
continuation ()
@@ -298,8 +298,8 @@ and declare_module ~opaque_access ?(continuation = ignore) ?name arity mb =
298
298
declare_inductive ~opaque_access ind_name ~continuation arity evdr env pind
299
299
end
300
300
| (lab, SFBmodule mb') when
301
- match mb' .mod_type with NoFunctor _ ->
302
- (match Declareops . mod_expr mb' with FullStruct | Algebraic _ -> true | _ -> false )
301
+ match Mod_declarations . mod_type mb' with NoFunctor _ ->
302
+ (match Mod_declarations . mod_expr mb' with FullStruct | Algebraic _ -> true | _ -> false )
303
303
| _ -> false
304
304
->
305
305
declare_module ~opaque_access ~continuation arity mb'
0 commit comments