-
Notifications
You must be signed in to change notification settings - Fork 682
Push Library.indirect_accessor references up in the call stack #18422
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
Conversation
plugins/extraction/g_extraction.mlg
Outdated
@@ -60,6 +60,8 @@ let pr_language = function | |||
| Scheme -> str "Scheme" | |||
| JSON -> str "JSON" | |||
|
|||
let access = Library.indirect_accessor[@@warning "-3"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not very satisfying IMO, I'll probably wait for a better solution before doing overlays (probably after #18421 is merged)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm OK with this, but indeed it'd be good to head towards a more principled solution.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TBH I don't want to do this for the overlays so this PR is waiting for the more principled solution.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
step towards making it possible #18832
The "needs: rebase" label was set more than 30 days ago. If the PR is not rebased in 30 days, it will be automatically closed. |
Happy to help with this (overlays and vernac types) if you need a hand @SkySkimmer |
The indirect accessor is still directly used in - dev/base_include (Drop stuff) - stm/stm (accessing the local opaques to get the just-now-defined body, probably could be written in a more direct way) - toplevel/coqc (-output-context)
metacoq overlay done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great!
@coqbot: merge now |
@ejgallego: Please take care of the following overlays:
|
Adapt to rocq-prover/rocq#18422 (indirect accessor handled through vernactypes)
Adapt to rocq-prover/rocq#18422 (indirect accessor handled through vernactypes)
Adapt to rocq-prover/rocq#18422 (indirect accessor handled through vernactypes)
Adapt to rocq-prover/rocq#18422 (indirect accessor handled through vernactypes)
Adapt to rocq-prover/rocq#18422 (indirect accessor handled through vernactypes)
… through vernactypes) Not sure we want to allow opaque access through tactics.
… through vernactypes) Not sure we want to allow opaque access through tactics.
overlays: