]> git.lizzy.rs Git - rust.git/commit - compiler/rustc_codegen_cranelift/build_system/abi_cafe.rs
Rollup merge of #106618 - jmillikin:os-net-rustdoc-wasm32, r=JohnTitor
authorMatthias Krüger <matthias.krueger@famsik.de>
Sun, 29 Jan 2023 05:14:16 +0000 (06:14 +0100)
committerGitHub <noreply@github.com>
Sun, 29 Jan 2023 05:14:16 +0000 (06:14 +0100)
commit0f86ada9d8095a2cc61bfaf0b21f872e34602674
tree98d8a3a442ec385158f47d1cab323f7efcf3764c
parentbcb064a7f4aee705c97ce1b74beb9af0f9b5adb2
parent92aa5f6b272bcdc020a34f8d90f9ef851b5b4504
Rollup merge of #106618 - jmillikin:os-net-rustdoc-wasm32, r=JohnTitor

Disable `linux_ext` in wasm32 and fortanix rustdoc builds.

The `std::os::unix` module is stubbed out when building docs for these target platforms. The introduction of Linux-specific extension traits caused `std::os::net` to depend on sub-modules of `std::os::unix`, which broke rustdoc for the `wasm32-unknown-unknown` target.

Adding an additional `#[cfg]` guard solves that rustdoc failure by not declaring `linux_ext` on targets with a stubbed `std::os::unix`.

Fixes #105467