Annotate unstable *LAST constants#5120
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
6d89662 to
ff01f04
Compare
This comment has been minimized.
This comment has been minimized.
05d5fe8 to
bd2bb5b
Compare
*LAST constants fitting #3131
bf8abd7 to
b1ea172
Compare
This comment has been minimized.
This comment has been minimized.
This patch is a follow up to rust-lang#5120. That PR deprecated the now removed symbols such that it could be included in a stable release. This patch targets the 1.0 release, by altogether removinga the symbols and updating the SemVer-tracking file. See the accompanying PR for more details.
This patch is a follow up to rust-lang#5120. That PR deprecated the now removed symbols such that it could be included in a stable release. This patch targets the 1.0 release, by altogether removinga the symbols and updating the SemVer-tracking file. See the accompanying PR for more details.
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 patch is a follow up to rust-lang#5120. That PR deprecated the now removed symbols such that it could be included in a stable release. This patch targets the 1.0 release, by altogether removinga the symbols and updating the SemVer-tracking file. See the accompanying PR for more details.
8e5ad96 to
8c7d21e
Compare
This comment has been minimized.
This comment has been minimized.
8c7d21e to
d6d6fcd
Compare
| /// This symbol is prone to change across releases upstream. | ||
| /// See the [usage guidelines](crate::#usage-guidelines) for details and use. |
There was a problem hiding this comment.
These comments can probably just say "for details", "and use" is kind of redundant since they're called "usage guidelines"
| pub const SIOCIWFIRST: c_ulong = 0x8B00; | ||
| /// This symbol is prone to change across releases upstream. | ||
| /// See the [usage guidelines](crate::#usage-guidelines) for details and use. | ||
| pub const SIOCIWLAST: c_ulong = SIOCIWLASTPRIV; | ||
|
|
||
| pub const SIOCIWFIRST: c_ulong = 0x8B00; | ||
|
|
There was a problem hiding this comment.
Nit: the previous order matched source order https://cs.android.com/android/platform/superproject/+/android-latest-release:bionic/libc/kernel/uapi/linux/wireless.h;l=65-68;drc=180edefbd287c39caeb9d48784a9a10ac35f3636
*LAST constants*LAST constants
*LAST constants*LAST constants
b7670b6 to
ba1f15f
Compare
This comment has been minimized.
This comment has been minimized.
3ca466c to
48c1918
Compare
| pub const LC_MESSAGES: c_int = 6; | ||
|
|
||
| /// This symbol is prone to change across releases upstream. | ||
| /// See the [usage guidelines](crate::#usage-guidelines) for details. |
There was a problem hiding this comment.
I guess it still doesn't like these links, does just crate#usage-guidelines work?
48c1918 to
2934f45
Compare
|
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. |
These symbols are troublesome. They can change upstream. They don't work well with SemVer. Usage advice is needed. This patch links to it.
2934f45 to
f52dd42
Compare
These symbols are troublesome. They can change upstream. They don't work well with SemVer. Usage advice is needed. This patch links to it. (backport <rust-lang#5120>) (cherry picked from commit 7bb9988)
These symbols are troublesome. They can change upstream. They don't work well with SemVer. Usage advice is needed. This patch links to it. (backport <rust-lang#5120>) (cherry picked from commit 7bb9988)
Description
This PR adds documentation. Some symbols are troublesome. They can change upstream. The Rust change is non-breaking. This requires annotating. It requires usage advice. This patch links to it.
Notes
QNX is untouched. Sources were not found. Their SDK sign up is broken.
Solaris is mostly untouched. Sources were not found. Changes include generic symbols. These were sourced from Illumos.
Sources
FreeBSD manpage detailing how
UTXDB_LASTLOGINis not the type of constant we would want to deprecate.DragonFlyBSD sources showing how they define a
UTX_DB_LASTLOGXsymbol but not aUTX_DB_LASTLOGsymbol as we do.Android sources showing how they use the
NF_*_PRI_LASTin much the same manner as the Linux sources (further below.)Linux sources showing the use of
NF_*_PRI_LASTconstants as trailing enumeration constants defined in terms of large values.Illumos sources showing how
_PC_LASTshould be changed when adding new_PCconstants.OpenBSD sources showing how
_LC_LASTserves as the "end" value for constants defined prior to it.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