aboutsummaryrefslogtreecommitdiff
path: root/vernac/vernacprop.ml
diff options
context:
space:
mode:
authorEmilio Jesus Gallego Arias2019-02-17 02:54:41 +0100
committerEmilio Jesus Gallego Arias2019-03-30 17:20:56 +0100
commitbe62d1580ed8e55fd98d429025c291e4be7bc185 (patch)
treed4f9901623377ef434c629fb1e5d054e2ef57bce /vernac/vernacprop.ml
parent1b3009ea672fd57e13e2d6912a97db51dfe8f13f (diff)
[vernac] Small cleanup to remove assert false.
This is a fairly small cleanup on the `vernac_interp` function, which makes code cleaner and for example would allow to have `Load` inside `Load`. [Not that we would ever want that]
Diffstat (limited to 'vernac/vernacprop.ml')
-rw-r--r--vernac/vernacprop.ml8
1 files changed, 4 insertions, 4 deletions
diff --git a/vernac/vernacprop.ml b/vernac/vernacprop.ml
index 0fdd2faafa..704c5b2170 100644
--- a/vernac/vernacprop.ml
+++ b/vernac/vernacprop.ml
@@ -17,14 +17,14 @@ let rec under_control = function
| VernacExpr (_, c) -> c
| VernacRedirect (_,{CAst.v=c})
| VernacTime (_,{CAst.v=c})
- | VernacFail c
- | VernacTimeout (_,c) -> under_control c
+ | VernacFail {CAst.v=c}
+ | VernacTimeout (_,{CAst.v=c}) -> under_control c
let rec has_Fail = function
| VernacExpr _ -> false
| VernacRedirect (_,{CAst.v=c})
| VernacTime (_,{CAst.v=c})
- | VernacTimeout (_,c) -> has_Fail c
+ | VernacTimeout (_,{CAst.v=c}) -> has_Fail c
| VernacFail _ -> true
(* Navigation commands are allowed in a coqtop session but not in a .v file *)
@@ -41,7 +41,7 @@ let is_navigation_vernac c =
let rec is_deep_navigation_vernac = function
| VernacTime (_,{CAst.v=c}) -> is_deep_navigation_vernac c
| VernacRedirect (_, {CAst.v=c})
- | VernacTimeout (_,c) | VernacFail c -> is_navigation_vernac c
+ | VernacTimeout (_,{CAst.v=c}) | VernacFail {CAst.v=c} -> is_navigation_vernac c
| VernacExpr _ -> false
(* NB: Reset is now allowed again as asked by A. Chlipala *)