Skip to content

Commit

Permalink
Adapt to Coq PR #14746: subst_instance_context also in EConstr.
Browse files Browse the repository at this point in the history
  • Loading branch information
herbelin committed Aug 19, 2021
1 parent 3b592be commit bea673c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/parametricity.ml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
(* *)
(**************************************************************************)

module CVars = Vars

open Util
open Names
open Vars
Expand Down Expand Up @@ -1058,7 +1060,7 @@ let rec translate_mind_body name order evdr env kn b inst =
debug_env [`Inductive] "translate_mind, env = \n" env !evdr;
debug_evar_map [`Inductive] "translate_mind, evd = \n" env !evdr;
let envs =
let params = subst_instance_context inst b.mind_params_ctxt in
let params = CVars.subst_instance_context inst b.mind_params_ctxt in
let env_params = push_rel_context (List.map of_rel_decl params) env in
let env_arities =
List.fold_left (fun env ind ->
Expand All @@ -1078,7 +1080,7 @@ let rec translate_mind_body name order evdr env kn b inst =

debug_string [`Inductive] "translatation of params ...";
let mind_entry_params_R =
translate_mind_param order evdr env (subst_instance_context inst b.mind_params_ctxt)
translate_mind_param order evdr env (CVars.subst_instance_context inst b.mind_params_ctxt)
in
debug_string [`Inductive] "translatation of inductive ...";
let mind_entry_inds_R =
Expand Down

0 comments on commit bea673c

Please sign in to comment.