Rollup merge of #139092 - thaliaarchi:move-fd-pal, r=joboet
Move `fd` into `std::sys` Move platform definitions of `fd` into `std::sys`, as part of https://github.com/rust-lang/rust/issues/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` try-job: x86_64-gnu-aux
This commit is contained in:
commit
a64ccf4a46
17 changed files with 55 additions and 33 deletions
|
|
@ -73,12 +73,12 @@ check-aux:
|
|||
$(BOOTSTRAP) miri --stage 2 library/std \
|
||||
$(BOOTSTRAP_ARGS) \
|
||||
--no-doc -- \
|
||||
--skip fs:: --skip net:: --skip process:: --skip sys::pal::
|
||||
--skip fs:: --skip net:: --skip process:: --skip sys::fd:: --skip sys::pal::
|
||||
$(Q)MIRIFLAGS="-Zmiri-disable-isolation" \
|
||||
$(BOOTSTRAP) miri --stage 2 library/std \
|
||||
$(BOOTSTRAP_ARGS) \
|
||||
--doc -- \
|
||||
--skip fs:: --skip net:: --skip process:: --skip sys::pal::
|
||||
--skip fs:: --skip net:: --skip process:: --skip sys::fd:: --skip sys::pal::
|
||||
# Also test some very target-specific modules on other targets
|
||||
# (making sure to cover an i686 target as well).
|
||||
$(Q)MIRIFLAGS="-Zmiri-disable-isolation" BOOTSTRAP_SKIP_TARGET_SANITY=1 \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue