Skip to content

chore: deprecate String.Legacy and Substring.Raw.Legacy declarations#1736

Merged
fgdorais merged 1 commit intomainfrom
deprecate-string-legacy
Mar 31, 2026
Merged

chore: deprecate String.Legacy and Substring.Raw.Legacy declarations#1736
fgdorais merged 1 commit intomainfrom
deprecate-string-legacy

Conversation

@kim-em
Copy link
Copy Markdown
Collaborator

@kim-em kim-em commented Mar 26, 2026

This PR adds @[deprecated "Use the new String API." (since := "2026-03-26")] to every declaration in the String.Legacy and Substring.Raw.Legacy namespaces.

Uses set_option linter.deprecated false at the section level in both Legacy.lean and Lemmas.lean to suppress internal usage warnings.

🤖 Prepared with Claude Code

This PR adds `@[deprecated "Use the new `String` API." (since := "2026-03-26")]`
to every declaration in the `String.Legacy` and `Substring.Raw.Legacy` namespaces.

Uses `set_option linter.deprecated false` at the section level in both
`Legacy.lean` and `Lemmas.lean` to suppress internal usage warnings.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions github-actions bot added the awaiting-review This PR is ready for review; the author thinks it is ready to be merged. label Mar 26, 2026
mathlib-nightly-testing bot added a commit to leanprover-community/mathlib4-nightly-testing that referenced this pull request Mar 26, 2026
@fgdorais fgdorais added this pull request to the merge queue Mar 31, 2026
Merged via the queue into main with commit 36752f7 Mar 31, 2026
3 checks passed
@github-actions github-actions bot removed the awaiting-review This PR is ready for review; the author thinks it is ready to be merged. label Mar 31, 2026
@linesthatinterlace
Copy link
Copy Markdown
Contributor

I believe this PR broke mathlib and was erroneously merged. This is causing issues with other PRs.

@linesthatinterlace
Copy link
Copy Markdown
Contributor

At the very least, I do not understand why it was merged if mathlib's build was not confirmed.

fgdorais added a commit that referenced this pull request Apr 1, 2026
github-merge-queue bot pushed a commit that referenced this pull request Apr 1, 2026
@fgdorais fgdorais deleted the deprecate-string-legacy branch April 1, 2026 09:05
@fgdorais fgdorais restored the deprecate-string-legacy branch April 1, 2026 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants