-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[0.2] Backports #4465
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
[0.2] Backports #4465
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
9b90b9f
to
365f3f3
Compare
Refer: https://git.musl-libc.org/cgit/musl/tree/arch/generic/bits/ipc.h?h=v1.2.5 (backport <rust-lang#4384>) (cherry picked from commit 65a7737)
* Remove Cargo settings that are identical to the defaults (per Cargo [recommendations](https://doc.rust-lang.org/cargo/reference/manifest.html)) * Fix perl-based method to extract MSRV (backport <rust-lang#4408>) (cherry picked from commit d8e39a2)
365f3f3
to
672c512
Compare
`crate::mode_t` is almost never needed because it is part of prelude. Moreover, in many cases `mode_t` was already used without the prefix - thus confusing if they are different or not. Keeping it the same helps readability. (backport <rust-lang#4405>) [ Resolve conflict around vxworks S_* constants - Trevor ] (cherry picked from commit 1984cc2)
(backport <rust-lang#4407>) (cherry picked from commit e119cae)
Our current `e!` macro makes it easy to run into UB if C headers add a variant that isn't represented in the Rust version. Add a path to migrate away from this by introducing the `c_enum!` macro which represents a C enum as Rust constants and a type alias. Part of [1]. [1]: rust-lang#4419 (backport <rust-lang#4420>) (cherry picked from commit 62051ca)
[ref](https://github.com/torvalds/linux/blob/7cdabafc001202de9984f22c973305f424e0a8b7/include/linux/pid_types.h#L5) (backport <rust-lang#4403>) (cherry picked from commit e79c8d9)
(backport <rust-lang#4429>) (cherry picked from commit 673af93)
(backport <rust-lang#4319>) (cherry picked from commit 29ab31e)
(backport <rust-lang#4248>) (cherry picked from commit 1606561)
(backport <rust-lang#4402>) (cherry picked from commit 126f2c6)
(backport <rust-lang#4426>) (cherry picked from commit 74c3cc0)
(backport <rust-lang#4431>) (cherry picked from commit e69ebcf)
It's only me and I watch the repo anyway, so save me some unneeded pings. (backport <rust-lang#4432>) (cherry picked from commit 0040309)
(backport <rust-lang#4440>) (cherry picked from commit 74bfdee)
(backport <rust-lang#4400>) (cherry picked from commit 4ed4eb6)
It also specifies exact solaris-vm version to avoid future disruptions. (backport <rust-lang#4462>) (cherry picked from commit d450f9c)
672c512
to
e56ab23
Compare
Merged
via the queue into
rust-lang:libc-0.2
with commit May 29, 2025
ccdcaff
44 of 45 checks passed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Backport the following:
mode_t
usage #4405c_enum
macro #4420unnecessary_transmutes
from a recent nightly #4429