diff options
| author | Maxime Dénès | 2018-12-12 10:13:58 +0100 |
|---|---|---|
| committer | Maxime Dénès | 2018-12-12 10:13:58 +0100 |
| commit | 84a950c8e1fa06d0dd764e9a426edbd987a7989e (patch) | |
| tree | 824e99b1dbb0cac36e16b0b1ac871bc3492eb2f1 /tactics | |
| parent | d87c4c472478fbcb30de6efabc68473ee36849a1 (diff) | |
| parent | 4db7296d629f08c5a71905d8f6d29e2c4e4c0517 (diff) | |
Merge PR #8974: Fix mod_subst wrt universe polymorphism
Diffstat (limited to 'tactics')
| -rw-r--r-- | tactics/hints.ml | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tactics/hints.ml b/tactics/hints.ml index c20feccace..faff116af4 100644 --- a/tactics/hints.ml +++ b/tactics/hints.ml @@ -1063,12 +1063,12 @@ let cache_autohint (kn, obj) = let subst_autohint (subst, obj) = let subst_key gr = - let (lab'', elab') = subst_global subst gr in - let elab' = EConstr.of_constr elab' in - let gr' = - (try head_constr_bound Evd.empty elab' - with Bound -> lab'') - in if gr' == gr then gr else gr' + let (gr', t) = subst_global subst gr in + match t with + | None -> gr' + | Some t -> + (try head_constr_bound Evd.empty (EConstr.of_constr t.Univ.univ_abstracted_value) + with Bound -> gr') in let subst_hint (k,data as hint) = let k' = Option.Smart.map subst_key k in |
