diff options
| author | Gaëtan Gilbert | 2020-02-07 13:54:23 +0100 |
|---|---|---|
| committer | Gaëtan Gilbert | 2020-02-12 13:10:38 +0100 |
| commit | 30a2f4c5469e25038f5720f03e948519efeef48d (patch) | |
| tree | e12198192b5c8b7a9a9fdc2c69834f5c1ce2059e /vernac/himsg.ml | |
| parent | 6c1de3455d5cd79958a8e26ac728f7d5d1b8d025 (diff) | |
ReferenceVariables error contains a globref instead of a constr
The previous system was from before globref was in the kernel.
Diffstat (limited to 'vernac/himsg.ml')
| -rw-r--r-- | vernac/himsg.ml | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/vernac/himsg.ml b/vernac/himsg.ml index 17c3e0395a..dfc4631572 100644 --- a/vernac/himsg.ml +++ b/vernac/himsg.ml @@ -201,9 +201,7 @@ let explain_bad_assumption env sigma j = str "because this term is not a type." let explain_reference_variables sigma id c = - (* c is intended to be a global reference *) - let pc = pr_global (fst (Termops.global_of_constr sigma c)) in - pc ++ strbrk " depends on the variable " ++ Id.print id ++ + pr_global c ++ strbrk " depends on the variable " ++ Id.print id ++ strbrk " which is not declared in the context." let rec pr_disjunction pr = function |
