diff options
author | Enrico Tassi <Enrico.Tassi@inria.fr> | 2015-02-21 19:03:12 +0100 |
---|---|---|
committer | Enrico Tassi <Enrico.Tassi@inria.fr> | 2015-02-21 19:25:24 +0100 |
commit | 253d8c7cfd878912512f31d6aa09931959b66041 (patch) | |
tree | 96a95d88d3b57e3f8bda01c78bdebb6fd21226cb /kernel | |
parent | 7fc3adcf583cea7db6a224d9a58554b19d41cd4c (diff) |
Import (module): Do not force constraints if not ready (Close #4066)
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/safe_typing.ml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/safe_typing.ml b/kernel/safe_typing.ml index 20cecc84a..65d1de7e1 100644 --- a/kernel/safe_typing.ml +++ b/kernel/safe_typing.ml @@ -379,7 +379,9 @@ let globalize_constant_universes env cb = | None -> [] | Some fc -> match Future.peek_val fc with - | None -> [Later (Future.chain ~pure:true fc Univ.ContextSet.constraints)] + | None -> [Later (Future.chain + ~greedy:(not (Future.is_exn fc)) + ~pure:true fc Univ.ContextSet.constraints)] | Some c -> [Now (Univ.ContextSet.constraints c)]) let globalize_mind_universes mb = |