-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Move fd
into std::sys
#139092
base: master
Are you sure you want to change the base?
Move fd
into std::sys
#139092
Conversation
rustbot has assigned @Mark-Simulacrum. Use |
It'd be best left to another PR, but I think we could even move the Windows |
✌️ @thaliaarchi, you can now approve this pull request! If @joboet told you to " |
☔ The latest upstream changes (presumably #139101) made this pull request unmergeable. Please resolve the merge conflicts. |
7d71d36
to
41d6fbf
Compare
Move `fd` into `std::sys` Move platform definitions of `fd` into `std::sys`, as part of rust-lang#117276. Unlike other modules directly under `std::sys`, this is only available on some platforms and I have not provided a fallback abstraction for unsupported platforms. That is similar to how `std::os::fd` is gated to only supported platforms. Also, fix the `unsafe_op_in_unsafe_fn` lint, which was allowed for the Unix fd impl. Since macro expansions from `std::sys::pal::unix::weak` trigger this lint, fix it there too. cc `@joboet,` `@ChrisDenton`
Rollup of 5 pull requests Successful merges: - rust-lang#137836 (Set `target_vendor = "openwrt"` on `mips64-openwrt-linux-musl`) - rust-lang#138206 ([AIX] Ignore linting on repr(C) structs with repr(packed) or repr(align(n))) - rust-lang#139044 (bootstrap: Avoid cloning `change-id` list) - rust-lang#139092 (Move `fd` into `std::sys`) - rust-lang#139111 (Properly document FakeReads) r? `@ghost` `@rustbot` modify labels: rollup
Move `fd` into `std::sys` Move platform definitions of `fd` into `std::sys`, as part of rust-lang#117276. Unlike other modules directly under `std::sys`, this is only available on some platforms and I have not provided a fallback abstraction for unsupported platforms. That is similar to how `std::os::fd` is gated to only supported platforms. Also, fix the `unsafe_op_in_unsafe_fn` lint, which was allowed for the Unix fd impl. Since macro expansions from `std::sys::pal::unix::weak` trigger this lint, fix it there too. cc `@joboet,` `@ChrisDenton`
The job Click to see the possible cause of the failure (guessed by this bot)
|
💔 Test failed - checks-actions |
The fix for the CI error is not obvious to me. Miri indeed does not implement |
cc @RalfJung |
Yeah, we skip the rust/src/bootstrap/mk/Makefile.in Lines 72 to 81 in fb04372
So we'll need to come up with a new pattern for this. We already list |
Move platform definitions of
fd
intostd::sys
, as part of #117276.Unlike other modules directly under
std::sys
, this is only available on some platforms and I have not provided a fallback abstraction for unsupported platforms. That is similar to howstd::os::fd
is gated to only supported platforms.Also, fix the
unsafe_op_in_unsafe_fn
lint, which was allowed for the Unix fd impl. Since macro expansions fromstd::sys::pal::unix::weak
trigger this lint, fix it there too.cc @joboet, @ChrisDenton