diff options
| author | Gaëtan Gilbert | 2019-10-13 22:51:29 +0200 |
|---|---|---|
| committer | Gaëtan Gilbert | 2019-10-14 11:34:37 +0200 |
| commit | c6506c9276a9c38557d523224148fe2b9d98dafa (patch) | |
| tree | 55c791c0bf14b4ad070661a7e889498360e37968 /plugins | |
| parent | 81216e8947fb4906f5a2b109cbed3e2584383c57 (diff) | |
Fix #9851: anomaly when unsolved evar in Add Ring
AFAICT there is no reason to use interp_open_constr
I used Evd.from_ctx to keep passing evar maps around but maybe we
should be passing ustates instead?
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/setoid_ring/newring.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/setoid_ring/newring.ml b/plugins/setoid_ring/newring.ml index 76c393450b..e3e787df2c 100644 --- a/plugins/setoid_ring/newring.ml +++ b/plugins/setoid_ring/newring.ml @@ -139,8 +139,8 @@ let _ = add_tacdef false ((Loc.ghost,Id.of_string"ring_closed_term" let ic c = let env = Global.env() in let sigma = Evd.from_env env in - let sigma, c = Constrintern.interp_open_constr env sigma c in - (sigma, c) + let c, uctx = Constrintern.interp_constr env sigma c in + (Evd.from_ctx uctx, c) let ic_unsafe c = (*FIXME remove *) let env = Global.env() in |
