Skip to content

refactor: deprecate *NUM constants fitting #3131#5123

Open
dybucc wants to merge 1 commit into
rust-lang:mainfrom
dybucc:_num-deprecation
Open

refactor: deprecate *NUM constants fitting #3131#5123
dybucc wants to merge 1 commit into
rust-lang:mainfrom
dybucc:_num-deprecation

Conversation

@dybucc
Copy link
Copy Markdown
Contributor

@dybucc dybucc commented May 30, 2026

Description

Constants matching the *NUM naming scheme whose purpose is that of denoting a limit among
other symbols have been deprecated in this patch. This stems from the deprecation efforts in #3131.

This is a follow up PR to #5120.

Sources

Checklist

  • Relevant tests in libc-test/semver have been updated
  • No placeholder or unstable values like *LAST or *MAX are
    included (see #3131)
  • Tested locally (cd libc-test && cargo test --target mytarget);
    especially relevant for platforms that may not be checked in CI

@dybucc dybucc changed the title refactor: deprecate constants matching _NUM refactor: deprecate *NUM constants fitting #3131 May 30, 2026
@dybucc dybucc force-pushed the _num-deprecation branch from 3e02f14 to 44189c0 Compare May 31, 2026 15:10
These symbols, alongside those matching the `_MAX`, `_COUNT` and
`_LAST`-suffixed constants, have been deprecated in favor of keeping
more stable SemVer guarantees.

For more on the reasons why some of these constants were deprecated,
while others weren't, see the accompanying PR.
@dybucc dybucc force-pushed the _num-deprecation branch from 44189c0 to f722733 Compare June 4, 2026 07:09
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Jun 4, 2026

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants