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: revertAll must clear auxiliary declarations #6386

Merged
merged 1 commit into from
Dec 15, 2024
Merged

Conversation

leodemoura
Copy link
Member

This PR ensures that revertAll clears auxiliary declarations when invoked directly by users.

closes #6263

@leodemoura leodemoura added the changelog-language Language features, tactics, and metaprograms label Dec 14, 2024
@leodemoura leodemoura enabled auto-merge December 14, 2024 23:40
@github-actions github-actions bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label Dec 15, 2024
@leanprover-community-bot
Copy link
Collaborator

Mathlib CI status (docs):

  • ❗ Batteries/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase b721c0f54041f6a6adc618c07851a7e0414bd1e4 --onto bac34c7767bcf11ee80f40afcea03d80cee316f6. (2024-12-15 00:02:05)

This PR ensures that `revertAll` clears auxiliary declarations when
invoked directly by users.

closes #6263
@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc December 15, 2024 00:48 Inactive
@leodemoura leodemoura added this pull request to the merge queue Dec 15, 2024
Merged via the queue into master with commit a8a160b Dec 15, 2024
15 checks passed
return mvar.mvarId!
let (_, mvarId) ← mvarId.revert toRevert
(preserveOrder := true)
(clearAuxDeclsInsteadOfRevert := true)
Copy link
Contributor

@eric-wieser eric-wieser Dec 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this do anything in the presence of the for above? (or perhaps I should ask, does the loop above do anything in the presence of this flag?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog-language Language features, tactics, and metaprograms toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MVarId.revertAll snags auxiliary declarations, leading to termination issues
3 participants