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

Fix check that sections are not opened when starting a module #18310

Merged
merged 1 commit into from Nov 21, 2023

Conversation

SkySkimmer
Copy link
Contributor

Lib.sections_are_opened relies on the invariant that there are no modules in sections.

This was broken by the synterp phase.

We enforce the invariant in Lib with an assert and in vernac with proper user readable errors.

Fix #18307

Lib.sections_are_opened relies on the invariant that there are no
modules in sections.

This was broken by the synterp phase.

We enforce the invariant in Lib with an assert and in vernac with
proper user readable errors.

Fix coq#18307
@SkySkimmer SkySkimmer added the request: full CI Use this label when you want your next push to trigger a full CI. label Nov 14, 2023
@SkySkimmer SkySkimmer requested review from a team as code owners November 14, 2023 12:20
@coqbot-app coqbot-app bot removed the request: full CI Use this label when you want your next push to trigger a full CI. label Nov 14, 2023

This comment was marked as outdated.

@SkySkimmer SkySkimmer added the kind: fix This fixes a bug or incorrect documentation. label Nov 20, 2023
@proux01 proux01 self-assigned this Nov 21, 2023
@proux01 proux01 added this to the 8.19+rc1 milestone Nov 21, 2023
@proux01
Copy link
Contributor

proux01 commented Nov 21, 2023

@coqbot merge now

@coqbot-app coqbot-app bot merged commit 453e819 into coq:master Nov 21, 2023
8 checks passed
@SkySkimmer SkySkimmer deleted the fix-check-mod-in-section branch November 21, 2023 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: fix This fixes a bug or incorrect documentation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

better error message when user tries a module type within a section, assertion failed in kernel/safe_typing.ml
2 participants