aboutsummaryrefslogtreecommitdiffhomepage
path: root/kernel/declarations.ml
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/declarations.ml')
-rw-r--r--kernel/declarations.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/declarations.ml b/kernel/declarations.ml
index b8edcae72..b995f2e4a 100644
--- a/kernel/declarations.ml
+++ b/kernel/declarations.ml
@@ -127,7 +127,7 @@ let subst_const_def sub = function
| OpaqueDef lc -> OpaqueDef (subst_lazy_constr sub lc)
let subst_const_body sub cb = {
- const_hyps = (assert (cb.const_hyps=[]); []);
+ const_hyps = (match cb.const_hyps with [] -> [] | _ -> assert false);
const_body = subst_const_def sub cb.const_body;
const_type = subst_const_type sub cb.const_type;
const_body_code = Cemitcodes.subst_to_patch_subst sub cb.const_body_code;
@@ -341,7 +341,7 @@ let subst_mind sub mib =
{ mind_record = mib.mind_record ;
mind_finite = mib.mind_finite ;
mind_ntypes = mib.mind_ntypes ;
- mind_hyps = (assert (mib.mind_hyps=[]); []) ;
+ mind_hyps = (match mib.mind_hyps with [] -> [] | _ -> assert false);
mind_nparams = mib.mind_nparams;
mind_nparams_rec = mib.mind_nparams_rec;
mind_params_ctxt =