Skip to content

Commit

Permalink
Merge pull request #401 from SkySkimmer/indirect
Browse files Browse the repository at this point in the history
Adapt to coq/coq#18422 (indirect accessor handled through vernactypes)
  • Loading branch information
ejgallego authored Apr 7, 2024
2 parents 163181c + c4449d7 commit 7bea13d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions serapi/serapi_protocol.ml
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ module QueryUtil = struct
let cdef = Environ.lookup_constant cr env in
let cb = Environ.lookup_constant cr env in
Option.cata (fun (cb,_univs,_uctx) -> [CoqConstr cb] ) []
(Global.body_of_constant_body Library.indirect_accessor cb),
(Global.body_of_constant_body (Library.indirect_accessor[@warning "-3"]) cb),
[CoqConstr(type_of_constant cdef)]

let info_of_var env vr =
Expand Down Expand Up @@ -534,7 +534,8 @@ module QueryUtil = struct
let cstr, _ = UnivGen.fresh_global_instance env gr in
let st = Conv_oracle.get_transp_state (Environ.oracle env) in
let nassums =
Assumptions.assumptions st ~add_opaque:true ~add_transparent:true gr cstr in
Assumptions.assumptions (Library.indirect_accessor[@warning "-3"])
st ~add_opaque:true ~add_transparent:true gr cstr in
Serapi_assumptions.build env nassums

(* This should be moved Coq upstream *)
Expand Down

0 comments on commit 7bea13d

Please sign in to comment.