Skip to content

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

Open
fgdorais wants to merge 1 commit intomainfrom
deprecate-string-legacy
Open

chore: deprecate String.Legacy and Substring.Raw.Legacy declarations#1750
fgdorais wants to merge 1 commit intomainfrom
deprecate-string-legacy

Conversation

@fgdorais
Copy link
Copy Markdown
Collaborator

@fgdorais fgdorais commented Apr 1, 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.

Reopened after revert.

@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 Apr 1, 2026
mathlib-nightly-testing bot added a commit to leanprover-community/mathlib4-nightly-testing that referenced this pull request Apr 1, 2026
@fgdorais fgdorais force-pushed the deprecate-string-legacy branch from 5d0b29a to cb2f99b Compare April 1, 2026 09:20
mathlib-nightly-testing bot added a commit to leanprover-community/mathlib4-nightly-testing that referenced this pull request Apr 1, 2026
@fgdorais fgdorais force-pushed the deprecate-string-legacy branch from cb2f99b to d17dca9 Compare April 1, 2026 09:26
mathlib-nightly-testing bot added a commit to leanprover-community/mathlib4-nightly-testing that referenced this pull request Apr 1, 2026
@fgdorais
Copy link
Copy Markdown
Collaborator Author

fgdorais commented Apr 1, 2026

Mathlib Test is broken but manual check shows that String.toList_nonempty is broken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-review This PR is ready for review; the author thinks it is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant