refactor: deprecate ELAST constants#5118
Conversation
This comment has been minimized.
This comment has been minimized.
53d55bf to
cd01c4c
Compare
This comment has been minimized.
This comment has been minimized.
|
Reminder, once the PR becomes ready for a review, use |
I don't quite understand what you mean. You mention deprecating for the 0.2 release, and removal for Also, I left some comments, especially in #5122, that I would like to get external feedback on, if @rustbot ready |
This comment has been minimized.
This comment has been minimized.
No in this PR, let's do that in a PR actually removing them. |
There was a problem hiding this comment.
LGTM, but this would make a lot of warnings in the world so cc @tgross35 to be seconded if we're ready to go ahead or not.
This follows from rust-lang#5118, where all these symbols were deprecated. @JohnTitor then advised for their removal in a separate PR that was not on track to a stable release. There have been a few more symbols that had to be altogether removed because they relied on the now non-existent constants. See the accompanying PR for details.
This follows from rust-lang#5118, where all these symbols were deprecated. @JohnTitor then advised for their removal in a separate PR that was not on track to a stable release. There have been a few more symbols that had to be altogether removed because they relied on the now non-existent constants. See the accompanying PR for details.
This follows from rust-lang#5118, where all these symbols were deprecated. @JohnTitor then advised for their removal in a separate PR that was not on track to a stable release. There have been a few more symbols that had to be altogether removed because they relied on the now non-existent constants. See the accompanying PR for details.
This follows from rust-lang#5118, where all these symbols were deprecated. @JohnTitor then advised for their removal in a separate PR that was not on track to a stable release. There have been a few more symbols that had to be altogether removed because they relied on the now non-existent constants. See the accompanying PR for details.
This follows from rust-lang#5118, where all these symbols were deprecated. @JohnTitor then advised for their removal in a separate PR that was not on track to a stable release. There have been a few more symbols that had to be altogether removed because they relied on the now non-existent constants. See the accompanying PR for details.
This follows from rust-lang#5118, where all these symbols were deprecated. @JohnTitor then advised for their removal in a separate PR that was not on track to a stable release. There have been a few more symbols that had to be altogether removed because they relied on the now non-existent constants. See the accompanying PR for details.
This is a follow up from rust-lang#5118. That PR aimed for deprecation such the proposed changes were included in the next stable release. This patch completely removes the symbols for the 1.0 release.
This follows from rust-lang#5118, where all these symbols were deprecated. @JohnTitor then advised for their removal in a separate PR that was not on track to a stable release. There have been a few more symbols that had to be altogether removed because they relied on the now non-existent constants. See the accompanying PR for details.
This follows from rust-lang#5118, where all these symbols were deprecated. @JohnTitor then advised for their removal in a separate PR that was not on track to a stable release. There have been a few more symbols that had to be altogether removed because they relied on the now non-existent constants. See the accompanying PR for details.
This is a follow up from rust-lang#5118. That PR aimed for deprecation such the proposed changes were included in the next stable release. This patch completely removes the symbols for the 1.0 release.
This is a follow up from rust-lang#5118. That PR aimed for deprecation such the proposed changes were included in the next stable release. This patch completely removes the symbols for the 1.0 release.
This follows from rust-lang#5118, where all these symbols were deprecated. @JohnTitor then advised for their removal in a separate PR that was not on track to a stable release. There have been a few more symbols that had to be altogether removed because they relied on the now non-existent constants. See the accompanying PR for 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 is a follow up from rust-lang#5118. That PR aimed for deprecation such the proposed changes were included in the next stable release. This patch completely removes the symbols for the 1.0 release.
This follows from rust-lang#5118, where all these symbols were deprecated. @JohnTitor then advised for their removal in a separate PR that was not on track to a stable release. There have been a few more symbols that had to be altogether removed because they relied on the now non-existent constants. See the accompanying PR for details.
This set of constants had already been discussed to cause some issues in rust-lang#3131. This patch deprecates such bu-prone and latest-error symbols such that the interface to the `libc` crate is not prone to SemVer-breakage as often as the values change upstream.
206303b to
5e6c6d6
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. |
This follows from rust-lang#5118, where all these symbols were deprecated. @JohnTitor then advised for their removal in a separate PR that was not on track to a stable release. There have been a few more symbols that had to be altogether removed because they relied on the now non-existent constants. See the accompanying PR for details.
This follows from rust-lang#5118, where all these symbols were deprecated. @JohnTitor then advised for their removal in a separate PR that was not on track to a stable release. There have been a few more symbols that had to be altogether removed because they relied on the now non-existent constants. See the accompanying PR for details.
This follows from rust-lang#5118, where all these symbols were deprecated. @JohnTitor then advised for their removal in a separate PR that was not on track to a stable release. There have been a few more symbols that had to be altogether removed because they relied on the now non-existent constants. See the accompanying PR for details.
Description
This set of constants had already been discussed to cause some issues in #3131. This patch deprecates such bug-prone and latest-error symbols such that the interface to the
libccrate is not prone to SemVer-breakage as often as the values change upstream.Note the NetBSD constant was left unmodified as it already had been annotated with a deprecation attribute.
If you yourself want to help out in the deprecation effort for this type of constants across the
libccrate, maybe try out thelibc-constant-deprecatorcrate. It's been the tool used to perform the changes that have been submitted in this PR, and it very much welcomes bug reports.Sources
Upstream source code for the FreeBSD
ELASTmacro declaration, mentioning its use as a "limit" value for othererrnovalues.Upstream source code for the OpenBSD equivalent macro declaration.
Upstream source code for the XNU kernel equivalent macro declaration.
Upstream source code for the DragonFlyBSD equivalent macro declaration.
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