linux_l4re: annotate unstable *NUM constants#5123
Conversation
_NUM*NUM constants fitting #3131
44189c0 to
f722733
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
CI actually passes. There seems to be an issue with a glob import that is not used, but this has not |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Needs the same doc comment updates |
|
Reminder, once the PR becomes ready for a review, use |
Some symbols are not stable. New upstream releases may change them. This works out badly with SemVer. Advising users is necessary.
|
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. |
|
I just haven't merged the PR adding that section yet, it should be correct once that happens. Doc checks only run on a handful of targets. |
*NUM constants fitting #3131*NUM constants
Description
Constants matching the
*NUMnaming 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
The
WCTYPE_ALNUMconstant in the TEEOS tree has not been deprecated because I could not find the symbol in the OpenHarmony SDK. I tried with all versions of the latest SDK as released in both their GitHub and their Gitee, but I had no luck after runningrgwith the following command.The
PT_NUMin the Fuchsia source constant has not been deprecated because it does not seem to be used as a limit of any sort.The
AT_PHNUMconstant in NetBSD, FreeBSD, Android and Linux/L4RE has not been deprecated as the accompanying comments mention they are supposed to denote some number of entries, which I assume as not implying the type of "limit" value we're looking to deprecate.The
VFS_MAXTYPENUMFreeBSD constant has not been deprecated because it does not seem to be used as a the type of "limit" value we've deprecated in related PRs.The
B_DEV_BAD_DRIVE_NUMconstant under the Haiku tree has not been deprecated as it seems to just be another enum variant among a few other constants denoting errors.The
ELFCLASSNUMandEV_NUMLinux and L4RE constant have been deprecated as the context in which they are used in the upstream codebase and the fact they are trailing constants after two other symbols, implies they're the type of "limit" values we would want to deprecate.The
ELFDATANUMLinux and L4RE constant has not been deprecated because I could not find it in neither one of the Linux nor L4RE upstream repos (neither kernels.)The
ET_NUMandPT_NUMconstants in Linux and L4RE have not been deprecated because I could not find them in neither one of the Linux nor L4RE repos.The
ED_INVALID_RECNUMconstant in the GNU Hurd was not deprecated as the comment alongside its declaration does seem to imply it's not the type of "limit" value we're looking to depreacte.Checklist
libc-test/semverhave been updated*LASTor*MAXare included (see #3131)cd libc-test && cargo test --target mytarget); especially relevant for platforms that may not be checked in CI@rustbot label +stable-nominated