-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[0.2] Backports #4809
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 #4809
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
Collaborator
|
Some changes occurred in the Android module cc @maurer |
Collaborator
|
5735128 to
51cd82a
Compare
Collaborator
__error() has been deprecated and return the same value as __errno_location(). Removing the __error() function eliminates the sole use of thread_local in this crate. (backport <rust-lang#3653>) (cherry picked from commit de76fee) [ resolved conflicts in all files and removed the now-unused `rustc_dep_of_std` - Trevor ]
(backport <rust-lang#4724>) (cherry picked from commit f093797)
(backport <rust-lang#4739>) (cherry picked from commit 6f15928)
close rust-lang#4722 (backport <rust-lang#4744>) (cherry picked from commit 01cb1e3)
(backport <rust-lang#4734>) (cherry picked from commit e5b7775)
(backport <rust-lang#4746>) (cherry picked from commit 615224f)
(backport <rust-lang#4704>) (cherry picked from commit 8423131)
(backport <rust-lang#4704>) (cherry picked from commit 6e1b073)
Rustfmt will format `()` or `[]` macro invocations that contain valid
Rust syntax, but not `{}` invocations. Switch to `()`, and update the
syntax to be valid Rust so rustfmt cleans them up.
(backport <rust-lang#4765>)
(cherry picked from commit a8b1532)
Rustfmt was skipping this entire block because it doesn't support comments in the middle of chained `|`. So, add a `=> true` after `IPV6_FLOWINFO_PRIORITY` and the whole closure starts to get formatted again. (backport <rust-lang#4765>) (cherry picked from commit 4e4d9c2)
Move from `test/` to `tests/`, which is the directory for autodetection. This means that we can drop `[[test]]` entries in `libc-test/Cargo.toml` that don't require nondefault configuration like `harness = false`. The style library had to be moved to `style_lib` so that `style` could be used as the test name. (backport <rust-lang#4569>) (cherry picked from commit eab4196)
d9fc696 to
97d388c
Compare
Every platform needs the `__c_anonymous` config and most need to skip `__uint128`, so just do these in a common place. (backport <rust-lang#4766>) (cherry picked from commit c22bf18)
This includes `signal.h` stubs since that is a common header to import these types. (backport <rust-lang#4767>) (cherry picked from commit 67f8865)
Match Apple to make it more clear what headers we want to map. (backport <rust-lang#4768>) (cherry picked from commit ed6645d)
Match Apple and Linux to make it more clear what headers we want to map. Additionally, rename to `bionic_libc` since we may have others in the future (e.g. `bionic_uapi`). (backport <rust-lang#4770>) (cherry picked from commit 0486b80)
There isn't any need to group these two modules. (backport <rust-lang#4770>) (cherry picked from commit a83905d)
Ensure each library we provide bindings for has a home module in order to make it easier to fill things in. Where possible, I included a link to the source tree. There is also a new module `common` that contains definitions intended to be shared across multiple libraries. (backport <rust-lang#4771>) (cherry picked from commit b295e78)
The crate has a lot of reexports and will be getting many more. Change the formatting to vertical to reduce the possibility of conflicts. (backport <rust-lang#4772>) (cherry picked from commit c04afc0)
Fix duplicate exports for nuttx. (backport <rust-lang#4773>) (cherry picked from commit 82e3aed)
Add the missing expected traits. (backport <rust-lang#4773>) (cherry picked from commit d6d774f)
`target_vendor = "wali"` no longer seems to exist, so use wasm+musl to enable the module instead. Also fix missing types in the wali module. (backport <rust-lang#4773>) (cherry picked from commit 57a0228)
Collaborator
|
Some changes occurred in OpenBSD module cc @semarie |
(backport <rust-lang#4773>) (cherry picked from commit f638893)
dea5287 to
27f7866
Compare
This flagged a changed struct in the latest version. Alignment isn't something users should be relying upon, so ignore it globally.
7ff062d to
f8339e8
Compare
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:
c_enum!#4757linux/can/bcm.h#4683headers!macro to a syntax that rustfmt will format #4765src/newstructure #4771libc#4772