diff options
| author | Enrico Tassi | 2015-11-26 18:09:53 +0100 |
|---|---|---|
| committer | Enrico Tassi | 2015-11-26 18:09:53 +0100 |
| commit | 11ccb7333c2a82d59736027838acaea2237e2402 (patch) | |
| tree | cee059831f84e8ec6b020f3a545a6d6c7ac803f2 /kernel/type_errors.ml | |
| parent | 566a24e28924ad4a7dda99891dce3882e6db112c (diff) | |
Make the pretty printer resilient to incomplete nametab (progress on #4363).
The nametab in which the error message is printed is not the one in
which the error message happens.
This reveals a weakness in the fix_exn code: the fix_exn function should
be pure, while in some cases (like this one) uses the global state (the
nametab) to print a term in a pretty way (the shortest non-ambiguous name
for constants).
This patch makes the externalization phase (used by term printing)
resilient to an incomplete nametab, so that printing a term in the
wrong nametab does not mask the original error.
Diffstat (limited to 'kernel/type_errors.ml')
0 files changed, 0 insertions, 0 deletions
