aboutsummaryrefslogtreecommitdiff
path: root/vernac
diff options
context:
space:
mode:
Diffstat (limited to 'vernac')
-rw-r--r--vernac/comInductive.ml5
-rw-r--r--vernac/declaremods.ml2
-rw-r--r--vernac/g_vernac.mlg3
3 files changed, 4 insertions, 6 deletions
diff --git a/vernac/comInductive.ml b/vernac/comInductive.ml
index 36aa7a37a2..80fcb7bc45 100644
--- a/vernac/comInductive.ml
+++ b/vernac/comInductive.ml
@@ -12,7 +12,6 @@ open Pp
open CErrors
open Sorts
open Util
-open Constr
open Context
open Environ
open Names
@@ -164,9 +163,7 @@ let sign_level env evd sign =
match d with
| LocalDef _ -> lev, push_rel d env
| LocalAssum _ ->
- let s = destSort (Reduction.whd_all env
- (EConstr.to_constr evd (Retyping.get_type_of env evd (EConstr.of_constr (RelDecl.get_type d)))))
- in
+ let s = Retyping.get_sort_of env evd (EConstr.of_constr (RelDecl.get_type d)) in
let u = univ_of_sort s in
(Univ.sup u lev, push_rel d env))
sign (Univ.Universe.sprop,env))
diff --git a/vernac/declaremods.ml b/vernac/declaremods.ml
index 65cd4cd6a4..54dda09e83 100644
--- a/vernac/declaremods.ml
+++ b/vernac/declaremods.ml
@@ -972,6 +972,8 @@ let declare_modtype id args mtys mty_l =
protect_summaries declare_mt
let declare_include me_asts =
+ if Global.sections_are_opened () then
+ user_err Pp.(str "Include is not allowed inside sections.");
protect_summaries (fun _ -> RawIncludeOps.declare_include me_asts)
diff --git a/vernac/g_vernac.mlg b/vernac/g_vernac.mlg
index b4c0a33585..4243d0c911 100644
--- a/vernac/g_vernac.mlg
+++ b/vernac/g_vernac.mlg
@@ -65,8 +65,7 @@ let parse_compat_version = let open Flags in function
| "8.11" -> Current
| "8.10" -> V8_10
| "8.9" -> V8_9
- | "8.8" -> V8_8
- | ("8.7" | "8.6" | "8.5" | "8.4" | "8.3" | "8.2" | "8.1" | "8.0") as s ->
+ | ("8.8" | "8.7" | "8.6" | "8.5" | "8.4" | "8.3" | "8.2" | "8.1" | "8.0") as s ->
CErrors.user_err ~hdr:"get_compat_version"
Pp.(str "Compatibility with version " ++ str s ++ str " not supported.")
| s ->