Skip to content

Commit a55b192

Browse files
authored
Rollup merge of #82870 - jfrimmel:improve-docs, r=jyn514
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). See the linked issue and #82861 for reference.
2 parents 6a55aa1 + c40ef91 commit a55b192

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
@@ -395,7 +395,11 @@ pub use alloc_crate::vec;
395395
#[stable(feature = "rust1", since = "1.0.0")]
396396
pub use core::any;
397397
#[stable(feature = "simd_arch", since = "1.27.0")]
398-
#[doc(no_inline)]
398+
// The `no_inline`-attribute is required to make the documentation of all
399+
// targets available.
400+
// See https://github.com/rust-lang/rust/pull/57808#issuecomment-457390549 for
401+
// more information.
402+
#[doc(no_inline)] // Note (#82861): required for correct documentation
399403
pub use core::arch;
400404
#[stable(feature = "core_array", since = "1.36.0")]
401405
pub use core::array;

0 commit comments

Comments
 (0)