diff options
| author | Gaëtan Gilbert | 2020-05-14 17:25:23 +0200 |
|---|---|---|
| committer | Gaëtan Gilbert | 2020-05-14 17:25:23 +0200 |
| commit | cc54af3842cbf99f169f7937b0e31f737652bd3a (patch) | |
| tree | 7812c281b7c0012e9dcb3e7e2f78f11950b2e9e2 /vernac | |
| parent | e36c415f5a9509f050246a62e6198bc5b7b193d3 (diff) | |
| parent | 5c3b9f9082b2a628bbf877dffae5ac38b5923f89 (diff) | |
Merge PR #12296: Fixes #12234: wrong environment for Show Proof
Reviewed-by: SkySkimmer
Diffstat (limited to 'vernac')
| -rw-r--r-- | vernac/vernacentries.ml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/vernac/vernacentries.ml b/vernac/vernacentries.ml index aac0b54ed4..6568d7bf14 100644 --- a/vernac/vernacentries.ml +++ b/vernac/vernacentries.ml @@ -95,8 +95,14 @@ let show_proof ~pstate = try let pstate = Option.get pstate in let p = Declare.Proof.get_proof pstate in - let sigma, env = Declare.get_current_context pstate in + let sigma, _ = Declare.get_current_context pstate in let pprf = Proof.partial_proof p in + (* In the absence of an environment explicitly attached to the + proof and on top of which side effects of the proof would be pushed, , + we take the global environment which in practise should be a + superset of the initial environment in which the proof was + started *) + let env = Global.env() in Pp.prlist_with_sep Pp.fnl (Printer.pr_econstr_env env sigma) pprf (* We print nothing if there are no goals left *) with |
