Skip to content

Commit

Permalink
Adapt to coq/coq#18422 (indirect accessor handled through vernactypes)
Browse files Browse the repository at this point in the history
  • Loading branch information
SkySkimmer committed Mar 22, 2024
1 parent 71c553d commit c4449d7
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 c4449d7

Please sign in to comment.