Skip to content

Commit 13fe4bc

Browse files
committed
workaround doc generation error on non-darwin platforms
1 parent 5e7442e commit 13fe4bc

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
//! Defines types and macros for Objective-C interoperability.
2+
//!
3+
//! This module re-exports all the items in [`core::os::darwin::objc`].
24
35
#![unstable(feature = "darwin_objc", issue = "145496")]
46

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)]
7+
// We can't document this automatically since we generate documentation for this module
8+
// on every platform but `core::os::darwin` isn't available on every platform.
9+
// We just mention it in the module documentation above instead.
10+
#[cfg(not(doc))]
811
pub use core::os::darwin::objc::*;

0 commit comments

Comments
 (0)