diff options
| author | Gaëtan Gilbert | 2019-12-31 20:06:08 +0100 |
|---|---|---|
| committer | Gaëtan Gilbert | 2019-12-31 20:06:08 +0100 |
| commit | 0b1f1f9e02f481613fda3d0e087a01cede15e65b (patch) | |
| tree | 9aa81047a428a19c3b19be3b6925b740e82aa339 /engine/proofview.ml | |
| parent | f1bcfcb3d62d4c0b709d70c82b40bf4d4e0b6c11 (diff) | |
| parent | 9d0e4b2ab78b89e39c63e8010ffd03745b309b5a (diff) | |
Merge PR #11338: Remove uses of Global in Evd API.
Reviewed-by: ejgallego
Reviewed-by: herbelin
Diffstat (limited to 'engine/proofview.ml')
| -rw-r--r-- | engine/proofview.ml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engine/proofview.ml b/engine/proofview.ml index 6f8e668e4e..16be96454e 100644 --- a/engine/proofview.ml +++ b/engine/proofview.ml @@ -1039,9 +1039,9 @@ let (>>=) = tclBIND (** {6 Goal-dependent tactics} *) -let goal_env evars gl = +let goal_env env evars gl = let evi = Evd.find evars gl in - Evd.evar_filtered_env evi + Evd.evar_filtered_env env evi let goal_nf_evar sigma gl = let evi = Evd.find sigma gl in @@ -1256,9 +1256,10 @@ module V82 = struct let of_tactic t gls = try + let env = Global.env () in let init = { shelf = []; solution = gls.Evd.sigma ; comb = [with_empty_state gls.Evd.it] } in let name, poly = Names.Id.of_string "legacy_pe", false in - let (_,final,_,_) = apply ~name ~poly (goal_env gls.Evd.sigma gls.Evd.it) t init in + let (_,final,_,_) = apply ~name ~poly (goal_env env gls.Evd.sigma gls.Evd.it) t init in { Evd.sigma = final.solution ; it = CList.map drop_state final.comb } with Logic_monad.TacticFailure e as src -> let (_, info) = CErrors.push src in |
