Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt to coq/coq#17836 (sort poly) #123

Merged
merged 1 commit into from
Nov 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion graphdepend.mlg
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ try
let t, ctx = Typeops.type_of_global_in_context (Global.env()) gref in
(* Beware of this code, not considered entirely correct, but I don't know
how to fix it. *)
let env = Environ.push_context ~strict:false (Univ.AbstractContext.repr ctx)
let env = Environ.push_context ~strict:false (UVars.AbstractContext.repr ctx)
(Global.env ()) in
let s = (Typeops.infer_type env t).Environ.utj_type in
Sorts.is_prop s
Expand Down
2 changes: 1 addition & 1 deletion searchdepend.mlg
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
match kind c with
| Var x -> add_identifier x acc
| Sort s -> add_sort s acc
| Const cst -> add_constant (Univ.out_punivs cst) acc
| Const cst -> add_constant (UVars.out_punivs cst) acc

Check failure on line 53 in searchdepend.mlg

View workflow job for this annotation

GitHub Actions / build (coqorg/coq:dev)

Unbound module UVars
| Ind (i,_) when not (List.exists (Names.MutInd.CanOrd.equal (fst i)) avoid) -> add_inductive i acc
| Construct (cnst,_) when not (List.exists (Names.MutInd.CanOrd.equal (fst (fst cnst))) avoid) -> add_constructor cnst acc
| Case({ci_ind=i},_,_,_,_,_,_) ->
Expand Down