diff options
| author | Gaëtan Gilbert | 2020-11-11 16:13:56 +0100 |
|---|---|---|
| committer | Gaëtan Gilbert | 2020-11-13 13:44:06 +0100 |
| commit | 76483168ec6a27a1cf456aa8ead92273e2c74bfd (patch) | |
| tree | e722a80d1429b5966b855a1b02efd7c467d3578a /engine/evarutil.ml | |
| parent | 51e759fb2ff92dd89ab4823ddea3ea81be7f8046 (diff) | |
Fix incorrect "avoid" set in globenv extra data
Fix #13348
Diffstat (limited to 'engine/evarutil.ml')
| -rw-r--r-- | engine/evarutil.ml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engine/evarutil.ml b/engine/evarutil.ml index 771571fd3f..ba6a9ea6d9 100644 --- a/engine/evarutil.ml +++ b/engine/evarutil.ml @@ -371,7 +371,8 @@ let push_rel_decl_to_named_context let subst = update_var id0 id subst in let d = decl |> NamedDecl.of_rel_decl (fun _ -> id0) |> map_decl (csubst_subst subst) in let nc = replace_var_named_declaration id0 id nc in - (push_var id0 subst, Id.Set.add id avoid, push_named_context_val d nc) + let avoid = Id.Set.add id (Id.Set.add id0 avoid) in + (push_var id0 subst, avoid, push_named_context_val d nc) | Some id0 when hypnaming = FailIfConflict -> user_err Pp.(Id.print id0 ++ str " is already used.") | _ -> |
