Skip to content

Commit c40ef91

Browse files
committed
Add note about the #[doc(no-inline)] usage
This is required to correctly build the documentation (including all submodules, that are only available in certain targets).
1 parent 51748a8 commit c40ef91

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

library/std/src/lib.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,11 @@ pub use alloc_crate::vec;
394394
#[stable(feature = "rust1", since = "1.0.0")]
395395
pub use core::any;
396396
#[stable(feature = "simd_arch", since = "1.27.0")]
397-
#[doc(no_inline)]
397+
// The `no_inline`-attribute is required to make the documentation of all
398+
// targets available.
399+
// See https://github.com/rust-lang/rust/pull/57808#issuecomment-457390549 for
400+
// more information.
401+
#[doc(no_inline)] // Note (#82861): required for correct documentation
398402
pub use core::arch;
399403
#[stable(feature = "core_array", since = "1.36.0")]
400404
pub use core::array;

0 commit comments

Comments
 (0)