aboutsummaryrefslogtreecommitdiffhomepage
path: root/toplevel/obligations.ml
diff options
context:
space:
mode:
authorGravatar Arnaud Spiwack <arnaud@spiwack.net>2016-06-15 19:19:58 +0200
committerGravatar Arnaud Spiwack <arnaud@spiwack.net>2016-06-15 19:22:40 +0200
commit4d239ab9f096843dc1c78744dfc9b316ab49d6d9 (patch)
tree7c5f1ef4a58575566b36a4b1f58f4acb26f95396 /toplevel/obligations.ml
parentd4f3a1a807d474050a4e91e16ff7813f1db7f537 (diff)
Allow `Pretyping.search_guard` to not check guard
This is a minimal modification to the pretyping interface which allows for toplevel fixed points to be accepted by the pretyper. Toplevel co-fixed points are accepted without this. However (co-)fixed point _nested_ inside a `Definition` or a `Fixpoint` are always checked for guardedness by the pretyper.
Diffstat (limited to 'toplevel/obligations.ml')
-rw-r--r--toplevel/obligations.ml3
1 files changed, 2 insertions, 1 deletions
diff --git a/toplevel/obligations.ml b/toplevel/obligations.ml
index 9df5a411b..ec58392d5 100644
--- a/toplevel/obligations.ml
+++ b/toplevel/obligations.ml
@@ -582,7 +582,8 @@ let declare_mutual_definition l =
List.map3 compute_possible_guardness_evidences
wfl fixdefs fixtypes in
let indexes =
- Pretyping.search_guard Loc.ghost (Global.env())
+ Pretyping.search_guard ~tflags:{Declarations.check_guarded=true}
+ Loc.ghost (Global.env())
possible_indexes fixdecls in
Some indexes,
List.map_i (fun i _ ->