Skip to content

Typecheck ignoring errors instead of globalize for Ltac2 Globalize#21618

Merged
coqbot-app[bot] merged 1 commit intorocq-prover:masterfrom
SkySkimmer:noglobalize
Feb 27, 2026
Merged

Typecheck ignoring errors instead of globalize for Ltac2 Globalize#21618
coqbot-app[bot] merged 1 commit intorocq-prover:masterfrom
SkySkimmer:noglobalize

Conversation

@SkySkimmer
Copy link
Contributor

This adds a mode to ltac2 typechecking which accumulates errors instead of raising an exception at the first error.

Ltac2 Globalize then uses this mode and ignores the accumulated errors (we could print them instead).

The accumulation mode could also be used to provide all errors from an ltac2 expression in regular code in the future (with a flag).

Together with #21617 this gets us closer to removing the globalize code (which doesn't work on quotations so should be avoided).

@SkySkimmer SkySkimmer requested a review from a team as a code owner February 11, 2026 15:34
@SkySkimmer SkySkimmer added the request: full CI Use this label when you want your next push to trigger a full CI. label Feb 11, 2026
@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 Feb 11, 2026
@SkySkimmer SkySkimmer added the kind: cleanup Code removal, deprecation, refactorings, etc. label Feb 13, 2026
@SkySkimmer SkySkimmer added this to the 9.3+rc1 milestone Feb 13, 2026
@ppedrot ppedrot self-assigned this Feb 25, 2026
@SkySkimmer SkySkimmer added the needs: progress Work in progress: awaiting action from the author. label Feb 25, 2026
This adds a mode to ltac2 typechecking which accumulates errors
instead of raising an exception at the first error.

Ltac2 Globalize then uses this mode and ignores the accumulated errors
(we could print them instead).

The accumulation mode could also be used to provide all errors from an
ltac2 expression in regular code in the future (with a flag).

Together with rocq-prover#21617 this gets us closer to removing the globalize
code (which doesn't work on quotations so should be avoided).
@SkySkimmer SkySkimmer removed the needs: progress Work in progress: awaiting action from the author. label Feb 26, 2026
@coqbot-app coqbot-app bot added the needs: full CI The latest GitLab pipeline that ran was a light CI. Say "@coqbot run full ci" to get a full CI. label Feb 26, 2026
@SkySkimmer SkySkimmer removed the needs: full CI The latest GitLab pipeline that ran was a light CI. Say "@coqbot run full ci" to get a full CI. label Feb 26, 2026
@ppedrot
Copy link
Member

ppedrot commented Feb 27, 2026

@coqbot merge now

@coqbot-app coqbot-app bot merged commit 384b676 into rocq-prover:master Feb 27, 2026
7 checks passed
@SkySkimmer SkySkimmer deleted the noglobalize branch February 27, 2026 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind: cleanup Code removal, deprecation, refactorings, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants