aboutsummaryrefslogtreecommitdiffhomepage
path: root/plugins
diff options
context:
space:
mode:
authorGravatar Maxime Dénès <mail@maximedenes.fr>2017-12-11 11:32:20 +0100
committerGravatar Maxime Dénès <mail@maximedenes.fr>2017-12-11 11:32:20 +0100
commit340e90e366e002e475fb0e6c4718b8614c95f366 (patch)
tree0313a27a044e39ae6a1ba9f4dedad151fa8ed752 /plugins
parent98c0c64749b6656df2a6522a3277ca2b96ae58ba (diff)
parentea87cce3f81e9b73047c1695ea716162aeb09ede (diff)
Merge PR #6324: Fix #6323: stronger restrict universe context vs abstract.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/setoid_ring/newring.ml3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/setoid_ring/newring.ml b/plugins/setoid_ring/newring.ml
index f22f00839..e3e749b75 100644
--- a/plugins/setoid_ring/newring.ml
+++ b/plugins/setoid_ring/newring.ml
@@ -152,7 +152,8 @@ let ic_unsafe c = (*FIXME remove *)
let decl_constant na univs c =
let open Constr in
- let vars = Univops.universes_of_constr c in
+ let env = Global.env () in
+ let vars = Univops.universes_of_constr env c in
let univs = Univops.restrict_universe_context univs vars in
let univs = Monomorphic_const_entry univs in
mkConst(declare_constant (Id.of_string na)