Skip to content

Commit c08321b

Browse files
committed
make darwin_objc docs build for more targets
1 parent 372186d commit c08321b

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

library/core/src/os/mod.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22
33
#![unstable(feature = "darwin_objc", issue = "145496")]
44

5+
#[cfg(all(
6+
doc,
7+
any(
8+
all(target_arch = "wasm32", not(target_os = "wasi")),
9+
all(target_vendor = "fortanix", target_env = "sgx")
10+
)
11+
))]
12+
#[unstable(issue = "none", feature = "std_internals")]
13+
pub mod darwin {}
14+
515
// darwin
616
#[cfg(not(all(
717
doc,

library/std/src/os/darwin/objc.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@
22
33
#![unstable(feature = "darwin_objc", issue = "145496")]
44

5-
pub use core::os::darwin::objc::{Class, SEL, class, objc_class, objc_selector, selector};
5+
// The `no_inline`-attribute is required to make the documentation of all targets available.
6+
// See https://github.com/rust-lang/rust/pull/57808#issuecomment-457390549 for more information.
7+
#[doc(no_inline)]
8+
pub use core::os::darwin::objc::*;

0 commit comments

Comments
 (0)