aboutsummaryrefslogtreecommitdiffhomepage
path: root/pretyping/inductiveops.ml
diff options
context:
space:
mode:
authorGravatar Arnaud Spiwack <arnaud@spiwack.net>2015-06-26 11:24:16 +0200
committerGravatar Arnaud Spiwack <arnaud@spiwack.net>2015-06-26 11:24:16 +0200
commit576d7a815174106f337fca2f19ad7f26a7e87cc4 (patch)
tree4679e39132853febe84670f5c039fc4608418496 /pretyping/inductiveops.ml
parent42b7e36ddb68f53ada686900e5a98435d9ff7fde (diff)
Add a flag to deactivate guard checking in the kernel.
Diffstat (limited to 'pretyping/inductiveops.ml')
-rw-r--r--pretyping/inductiveops.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/pretyping/inductiveops.ml b/pretyping/inductiveops.ml
index dfdc24d48..efea4bec8 100644
--- a/pretyping/inductiveops.ml
+++ b/pretyping/inductiveops.ml
@@ -593,9 +593,9 @@ let type_of_inductive_knowing_conclusion env sigma ((mib,mip),u) conclty =
let control_only_guard env c =
let check_fix_cofix e c = match kind_of_term c with
| CoFix (_,(_,_,_) as cofix) ->
- Inductive.check_cofix e cofix
+ Inductive.check_cofix ~chk:true e cofix
| Fix (_,(_,_,_) as fix) ->
- Inductive.check_fix e fix
+ Inductive.check_fix ~chk:true e fix
| _ -> ()
in
let rec iter env c =