Rollup of 3 pull requests#159553
Closed
jhpratt wants to merge 92 commits into
Closed
Conversation
…is is the same behaviour as `posix_fallocate`. And add tests for `fallocate` based on `posix_fallocate`.
Support `fallocate` on Linux
To match the deadlocked diagnostic in both tests, we will need to call the `libc::read/write()` methods directly.
Use shared libc helpers in tests
memcmp: add tests and update comments
This updates the rust-version file to 48c2cee.
Pull recent changes from https://github.com/rust-lang/rust via Josh. Upstream ref: rust-lang/rust@48c2cee Filtered ref: rust-lang/miri@acbeeb6 Upstream diff: rust-lang/rust@be8e824...48c2cee This merge was created using https://github.com/rust-lang/josh-sync.
…r extra indirection
FileDescription: make destroy a NOP by default and document the risks
This updates the rust-version file to 55b6bd8.
Pull recent changes from https://github.com/rust-lang/rust via Josh. Upstream ref: rust-lang/rust@55b6bd8 Filtered ref: rust-lang/miri@2631f42 Upstream diff: rust-lang/rust@48c2cee...55b6bd8 This merge was created using https://github.com/rust-lang/josh-sync.
Automatic Rustup
remove bogus sanity check from weak memory mixed-size logic
Dropped readiness watchers are now removed from the global readiness interest table when the GC runs.
move scheduler into its own file
Lazily destroy readiness watchers
This updates the rust-version file to 38a0576.
Pull recent changes from https://github.com/rust-lang/rust via Josh. Upstream ref: rust-lang/rust@38a0576 Filtered ref: rust-lang/miri@b83abd8 Upstream diff: rust-lang/rust@55b6bd8...38a0576 This merge was created using https://github.com/rust-lang/josh-sync.
replace global readiness watcher table by per-FD state
Add data race test for `poll`
add AI policy
std on Android does vectored I/O at offsets through weak preadv/pwritev symbols with a raw syscall fallback (bionic gained them in API level 24). The weak symbols did not resolve under Miri, so these calls failed. Register them for Android so they land in the existing shims, and un-skip the Android case in the fs tests.
Resolve preadv/pwritev as weak symbols on Android
add std::simd swizzle_dyn test
More consistent with the default functions for `Read` Co-Authored-By: Clar Fon <15850505+clarfonthey@users.noreply.github.com>
…clarfonthey Move `std::io::BufRead` to `alloc::io` ACP: rust-lang/libs-team#755 Tracking issue: rust-lang#154046 Split From: rust-lang#156527 ~~Blocked On: rust-lang#158545 ## Description Moves `std::io::BufRead` to `alloc::io`. This is effectively a direct cut and paste, but with a large diff due to how many implementations need to be moved into `alloc`. Blocked on rust-lang#158545. --- ## Notes * No AI tooling of any kind was used during the creation of this PR. * Please see rust-lang#154046 (comment) for a review order and broader context for this PR.
…=jhpratt
Remove SIZE generic param from DisplayBuffer in core::net
These symbols were observed on the surface of `core.o`:
```
<core::net::display_buffer::DisplayBuffer<15> as core::fmt::Write>::write_char
<core::net::display_buffer::DisplayBuffer<15> as core::fmt::Write>::write_fmt
<core::net::display_buffer::DisplayBuffer<15> as core::fmt::Write>::write_str
<core::net::display_buffer::DisplayBuffer<21> as core::fmt::Write>::write_char
<core::net::display_buffer::DisplayBuffer<21> as core::fmt::Write>::write_fmt
<core::net::display_buffer::DisplayBuffer<21> as core::fmt::Write>::write_str
<core::net::display_buffer::DisplayBuffer<39> as core::fmt::Write>::write_char
<core::net::display_buffer::DisplayBuffer<39> as core::fmt::Write>::write_fmt
<core::net::display_buffer::DisplayBuffer<39> as core::fmt::Write>::write_str
<core::net::display_buffer::DisplayBuffer<58> as core::fmt::Write>::write_char
<core::net::display_buffer::DisplayBuffer<58> as core::fmt::Write>::write_fmt
<core::net::display_buffer::DisplayBuffer<58> as core::fmt::Write>::write_str
```
There's no reason to instantiate four different copies of this super simple logic, so remove the size parameter allowing each case to call into the same shared machine code.
It's not possible to inline these symbols into the `{SocketAddrV*,Ipv*Addr}::fmt` methods because `core::fmt::write` constructs a `&mut dyn fmt::Write` to the `DisplayBuffer`.
miri subtree update Subtree update of `miri` to rust-lang/miri@f7f708b. Created using https://github.com/rust-lang/josh-sync. r? @ghost
Member
Author
|
@bors r+ rollup=never p=5 |
Contributor
Contributor
|
This pull request was unapproved due to being closed. |
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
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.
Successful merges:
std::io::BufReadtoalloc::io#158546 (Movestd::io::BufReadtoalloc::io)r? @ghost
Create a similar rollup