Repository navigation
chore: remove dead @[export] attributes - #14306
Merged
Merged
Conversation
Remove 25 `@[export]` attributes whose exported C symbol is referenced by nothing — no hand-written C/C++, and no Lean `@[extern]` consumer.
Follow-up to removing the dead `@[export]` attributes: these defs existed solely to be C-exported (thin `…Ex`/`…Export`/`…Imp` wrappers) and have no remaining Lean callers.
Kha
enabled auto-merge
July 7, 2026 09:51
Collaborator
|
Reference manual CI status:
|
|
Mathlib CI status (docs):
|
`freeRegions` and `isSetExport` were wrongly removed as dead: their `@[export]` forces the C calling convention (owned params / an unboxed version), which is load-bearing for codegen, not just linkage. Removing `freeRegions`'s export let borrow inference make `env` borrowed, causing a use-after-free (the `leanchecker` and `user_attr_app` test failures).
mathlib-nightly-testing Bot
pushed a commit
to leanprover-community/batteries
that referenced
this pull request
Jul 7, 2026
mathlib-nightly-testing Bot
pushed a commit
to leanprover-community/mathlib4-nightly-testing
that referenced
this pull request
Jul 7, 2026
mathlib-bors Bot
pushed a commit
to leanprover-community/mathlib4
that referenced
this pull request
Jul 16, 2026
AndPuQing
added a commit
to LeanOxide/leo3
that referenced
this pull request
Aug 1, 2026
- lean_mk_empty_environment export was removed in Lean 4.33 (leanprover/lean4#14306); bind the Lean-compiled l_Lean_mkEmptyEnvironment symbol with identical ABI - lean_add_decl/lean_elab_add_decl gained a maxRecDepth argument in Lean 4.33 (leanprover/lean4#13956); pass 0 (unlimited) to preserve prior behavior - dispatch both on the existing lean_4_33 version cfg; no regressions for stable/nightly/v4.20.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.