aboutsummaryrefslogtreecommitdiff
path: root/vernac/ppvernac.ml
diff options
context:
space:
mode:
authorHugo Herbelin2018-10-12 20:02:57 +0200
committerHugo Herbelin2019-06-08 20:17:41 +0200
commitb23c3fee91e146d4aa2bc2c75ea30619a204c3d9 (patch)
tree0e90eec1d26d541f7a43dcf6dff622ad3c4ab6e0 /vernac/ppvernac.ml
parent65f75de6929530252a3235af54a0da56980fa02d (diff)
Adding a new kind of assumption to track assumption coming from "Context".
This is to avoid depending on the combination "Discharge" + no opened section to trigger an automatic declaration of instance.
Diffstat (limited to 'vernac/ppvernac.ml')
-rw-r--r--vernac/ppvernac.ml2
1 files changed, 2 insertions, 0 deletions
diff --git a/vernac/ppvernac.ml b/vernac/ppvernac.ml
index 02af1904fd..fda1e2afea 100644
--- a/vernac/ppvernac.ml
+++ b/vernac/ppvernac.ml
@@ -359,6 +359,8 @@ open Pputils
keyword (if many then "Variables" else "Variable")
| (DoDischarge,Conjectural) ->
anomaly (Pp.str "Don't know how to beautify a local conjecture.")
+ | (_,Context) ->
+ anomaly (Pp.str "Context is used only internally.")
let pr_params pr_c (xl,(c,t)) =
hov 2 (prlist_with_sep sep pr_lident xl ++ spc() ++