Skip to content

feat: weak_specialize annotations#13138

Merged
hargoniX merged 3 commits intomasterfrom
hbv/no_specialize
Mar 26, 2026
Merged

feat: weak_specialize annotations#13138
hargoniX merged 3 commits intomasterfrom
hbv/no_specialize

Conversation

@hargoniX
Copy link
Copy Markdown
Contributor

This PR introduces the weak_specialize attribute. Unlike the nospecialize attribute it does not
block specialization for parameters marked with this type completely. Instead, weak_specialize
parameters are only specialized for if another parameter provokes specialization. If no such
parameter exists, they are treated like nospecialize.

@hargoniX hargoniX requested a review from leodemoura as a code owner March 26, 2026 16:21
@hargoniX hargoniX added the changelog-compiler Compiler, runtime, and FFI label Mar 26, 2026
@hargoniX hargoniX enabled auto-merge March 26, 2026 16:21
@hargoniX hargoniX disabled auto-merge March 26, 2026 16:35
@hargoniX hargoniX enabled auto-merge March 26, 2026 16:39
@hargoniX hargoniX force-pushed the hbv/no_specialize branch from d57cbfa to f615f98 Compare March 26, 2026 16:39
@hargoniX hargoniX added this pull request to the merge queue Mar 26, 2026
@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 Mar 26, 2026
@mathlib-lean-pr-testing
Copy link
Copy Markdown

mathlib-lean-pr-testing bot commented Mar 26, 2026

Mathlib CI status (docs):

  • ❗ Batteries/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase 0975b7136a8f8a7a1e224881d7c429376fae2026 --onto 4786e082dca22873d14d2a5b9b7c8843380c6e78. You can force Mathlib CI using the force-mathlib-ci label. (2026-03-26 17:56:53)
  • ❗ Batteries/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase 144db355ea259b0873b2f3d78795ffbd0994c787 --onto 4786e082dca22873d14d2a5b9b7c8843380c6e78. You can force Mathlib CI using the force-mathlib-ci label. (2026-03-26 22:40:11)

@leanprover-bot
Copy link
Copy Markdown
Collaborator

leanprover-bot commented Mar 26, 2026

Reference manual CI status:

  • ❗ Reference manual CI will not be attempted unless your PR branches off the nightly-with-manual branch. Try git rebase 0975b7136a8f8a7a1e224881d7c429376fae2026 --onto cfa8c5a036d6990635c6ec50b02d0e806995cec3. You can force reference manual CI using the force-manual-ci label. (2026-03-26 17:56:54)
  • ❗ Reference manual CI will not be attempted unless your PR branches off the nightly-with-manual branch. Try git rebase 144db355ea259b0873b2f3d78795ffbd0994c787 --onto cfa8c5a036d6990635c6ec50b02d0e806995cec3. You can force reference manual CI using the force-manual-ci label. (2026-03-26 22:40:13)

@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 26, 2026
@hargoniX hargoniX added the merge-ci Enable merge queue CI checks for PR. In particular, produce artifacts for all major platforms. label Mar 26, 2026
@hargoniX hargoniX force-pushed the hbv/no_specialize branch from f615f98 to 7a86d0d Compare March 26, 2026 21:19
@hargoniX hargoniX removed the merge-ci Enable merge queue CI checks for PR. In particular, produce artifacts for all major platforms. label Mar 26, 2026
@hargoniX hargoniX enabled auto-merge March 26, 2026 21:19
@hargoniX hargoniX disabled auto-merge March 26, 2026 21:20
@hargoniX hargoniX enabled auto-merge March 26, 2026 21:21
@hargoniX hargoniX added this pull request to the merge queue Mar 26, 2026
Merged via the queue into master with commit d56424b Mar 26, 2026
17 checks passed
@hargoniX hargoniX deleted the hbv/no_specialize branch March 26, 2026 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog-compiler Compiler, runtime, and FFI 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.

2 participants