aboutsummaryrefslogtreecommitdiffhomepage
path: root/kernel/typeops.ml
diff options
context:
space:
mode:
authorGravatar Pierre-Marie Pédrot <pierre-marie.pedrot@inria.fr>2016-06-16 17:47:44 +0200
committerGravatar Pierre-Marie Pédrot <pierre-marie.pedrot@inria.fr>2016-06-16 17:57:20 +0200
commit0e2189a7a070dd356d5e549392d35d9d07b05058 (patch)
tree010ef6230603cb3beb91e9058fe0e1adb733c5d6 /kernel/typeops.ml
parentb857552b6ffd5e72b5124aee9e35fc5c14607173 (diff)
Factorizing the uses of Declareops.safe_flags.
This allows a smooth addition of various unsafe flags without wreaking havoc in the ML codebase.
Diffstat (limited to 'kernel/typeops.ml')
-rw-r--r--kernel/typeops.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/typeops.ml b/kernel/typeops.ml
index a94a049df..9b9792ce8 100644
--- a/kernel/typeops.ml
+++ b/kernel/typeops.ml
@@ -500,13 +500,13 @@ let rec execute env cstr =
| Fix ((vn,i as vni),recdef) ->
let (fix_ty,recdef') = execute_recdef env recdef i in
let fix = (vni,recdef') in
- check_fix ~flags:{check_guarded=true} env fix;
+ check_fix ~flags:Declareops.safe_flags env fix;
make_judge (mkFix fix) fix_ty
| CoFix (i,recdef) ->
let (fix_ty,recdef') = execute_recdef env recdef i in
let cofix = (i,recdef') in
- check_cofix ~flags:{check_guarded=true} env cofix;
+ check_cofix ~flags:Declareops.safe_flags env cofix;
(make_judge (mkCoFix cofix) fix_ty)
(* Partial proofs: unsupported by the kernel *)