Skip to content

Annotate unstable *LAST constants#5120

Merged
tgross35 merged 1 commit into
rust-lang:mainfrom
dybucc:_last-deprecation
Jun 25, 2026
Merged

Annotate unstable *LAST constants#5120
tgross35 merged 1 commit into
rust-lang:mainfrom
dybucc:_last-deprecation

Conversation

@dybucc

@dybucc dybucc commented May 28, 2026

Copy link
Copy Markdown
Contributor

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

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

@rustbot label +stable-nominated

@rustbot

rustbot commented May 28, 2026

Copy link
Copy Markdown
Collaborator

Some changes occurred in a NetBSD-like module

cc @semarie

Some changes occurred in an OpenBSD module

cc @semarie

Some changes occurred in a solarish module

cc @jclulow, @pfmooney

Some changes occurred in an Android module

cc @maurer

@rustbot

This comment has been minimized.

@dybucc
dybucc force-pushed the _last-deprecation branch from 655cbe6 to 55dce9c Compare May 28, 2026 10:41
@rustbot

This comment has been minimized.

@dybucc
dybucc force-pushed the _last-deprecation branch 2 times, most recently from 6d89662 to ff01f04 Compare May 28, 2026 10:44
@rustbot

This comment has been minimized.

@dybucc
dybucc force-pushed the _last-deprecation branch 3 times, most recently from 05d5fe8 to bd2bb5b Compare May 28, 2026 12:04
@dybucc dybucc changed the title refactor deprecate *LAST constants fitting #3131 refactor deprecate *LAST constants fitting #3131 May 30, 2026
@dybucc
dybucc force-pushed the _last-deprecation branch 2 times, most recently from bf8abd7 to b1ea172 Compare June 4, 2026 07:08
@rustbot

This comment has been minimized.

dybucc added a commit to dybucc/libc that referenced this pull request Jun 8, 2026
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.
dybucc added a commit to dybucc/libc that referenced this pull request Jun 9, 2026
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.
@dybucc
dybucc force-pushed the _last-deprecation branch from b1ea172 to 8e5ad96 Compare June 9, 2026 07:12
@rustbot

This comment has been minimized.

@dybucc

dybucc commented Jun 9, 2026

Copy link
Copy Markdown
Contributor Author

CI actually passes. There seems to be an issue with a glob import that is not used, but this has not
been changed in the patch (it's not even part of it, for that matter.) For some reason, rebasing
onto main with dependabot updates has ended up with a warning across all of my open PRs due to
that one (now apparently unused) import.

@rustbot rustbot added the stable-nominated This PR should be considered for cherry-pick to libc's stable release branch label Jun 9, 2026
dybucc added a commit to dybucc/libc that referenced this pull request Jun 15, 2026
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.
@dybucc
dybucc force-pushed the _last-deprecation branch from 8e5ad96 to 8c7d21e Compare June 15, 2026 15:26
@rustbot

This comment has been minimized.

@tgross35 tgross35 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few nits than lgtm, links should pass now

View changes since this review

Comment thread src/solid/mod.rs Outdated
Comment on lines +223 to +224
/// This symbol is prone to change across releases upstream.
/// See the [usage guidelines](crate::#usage-guidelines) for details and use.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These comments can probably just say "for details", "and use" is kind of redundant since they're called "usage guidelines"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Comment thread src/unix/linux_like/linux/mod.rs Outdated
Comment on lines +2034 to +2051
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;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@tgross35 tgross35 changed the title crate: annotate unstalbe *LAST constants crate: annotate unstable *LAST constants Jun 24, 2026
@tgross35 tgross35 changed the title crate: annotate unstable *LAST constants Annotate unstable *LAST constants Jun 24, 2026
@dybucc
dybucc force-pushed the _last-deprecation branch from b7670b6 to ba1f15f Compare June 24, 2026 15:27
@rustbot

This comment has been minimized.

@dybucc
dybucc force-pushed the _last-deprecation branch from 3ca466c to 48c1918 Compare June 24, 2026 15:29
Comment thread src/solid/mod.rs Outdated
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.

@tgross35 tgross35 Jun 24, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it still doesn't like these links, does just crate#usage-guidelines work?

View changes since the review

@dybucc dybucc Jun 25, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does. Thanks. Opened #5219. It fixes the same things on #5118 and #5119.

@rustbot ready

@tgross35 tgross35 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but for CI fixes,
@rustbot author

View changes since this review

@rustbot

rustbot commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

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.
@dybucc
dybucc force-pushed the _last-deprecation branch from 2934f45 to f52dd42 Compare June 25, 2026 06:56
@tgross35
tgross35 added this pull request to the merge queue Jun 25, 2026
Merged via the queue into rust-lang:main with commit 7bb9988 Jun 25, 2026
54 checks passed
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Jul 20, 2026
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)
This was referenced Jul 20, 2026
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Jul 20, 2026
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)
@tgross35 tgross35 added stable-applied This PR has been cherry-picked to libc's stable release branch and removed stable-nominated This PR should be considered for cherry-pick to libc's stable release branch labels Jul 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stable-applied This PR has been cherry-picked to libc's stable release branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants