Skip to content

Commit b8752c6

Browse files
authored
Merge pull request #533 from herbelin/coq-master+adapt-coq-pr18253-no-poly-for-coercion
Adapt to Coq PR #18253: poly flag is spurious on try_add_new_coercion
2 parents 9e23b0f + 9bb2338 commit b8752c6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/coq_elpi_builtins.ml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ let add_axiom_or_variable api id ty local options state =
875875
GlobRef.VarRef(Id.of_string id), UVars.Instance.empty
876876
end else begin
877877
Dumpglob.dump_definition variable false "ax";
878-
ComAssumption.declare_axiom Vernacexpr.NoCoercion ~local:Locality.ImportDefaultBehavior ~poly:false ~kind (EConstr.to_constr sigma ty)
878+
ComAssumption.declare_axiom Vernacexpr.NoCoercion ~local:Locality.ImportDefaultBehavior ~kind (EConstr.to_constr sigma ty)
879879
uentry impargs options.inline
880880
variable
881881
end
@@ -2761,15 +2761,14 @@ NParams can always be omitted, since it is inferred.
27612761
- @reversible! (default: false)|})),
27622762
(fun (gr, _, source, target) ~depth { options } _ -> grab_global_env "coq.coercion.declare" (fun state ->
27632763
let local = options.local <> Some false in
2764-
let poly = false in
27652764
let reversible = options.reversible = Some true in
27662765
begin match source, target with
27672766
| B.Given source, B.Given target ->
27682767
let source = ComCoercion.class_of_global source in
2769-
ComCoercion.try_add_new_coercion_with_target gr ~local ~poly
2768+
ComCoercion.try_add_new_coercion_with_target gr ~local
27702769
~reversible ~source ~target
27712770
| _, _ ->
2772-
ComCoercion.try_add_new_coercion gr ~local ~poly ~reversible
2771+
ComCoercion.try_add_new_coercion gr ~local ~reversible
27732772
end;
27742773
state, (), []))),
27752774
DocAbove);

0 commit comments

Comments
 (0)