Suppress some cfg from being shown in the stdlib docs
This commit is contained in:
parent
18fdd816b7
commit
0031ce3a91
5 changed files with 44 additions and 3 deletions
|
@ -65,7 +65,10 @@
|
|||
#![doc(
|
||||
html_playground_url = "https://play.rust-lang.org/",
|
||||
issue_tracker_base_url = "https://github.com/rust-lang/rust/issues/",
|
||||
test(no_crate_inject, attr(allow(unused_variables), deny(warnings)))
|
||||
test(no_crate_inject, attr(allow(unused_variables), deny(warnings))),
|
||||
)]
|
||||
#![cfg_attr(not(bootstrap),
|
||||
doc(cfg_hide(not(test), not(any(test, bootstrap)), target_has_atomic = "ptr"))
|
||||
)]
|
||||
#![no_std]
|
||||
#![needs_allocator]
|
||||
|
@ -146,6 +149,8 @@
|
|||
#![feature(associated_type_bounds)]
|
||||
#![feature(slice_group_by)]
|
||||
#![feature(decl_macro)]
|
||||
#![feature(doc_cfg)]
|
||||
#![cfg_attr(not(bootstrap), feature(doc_cfg_hide))]
|
||||
// Allow testing this library
|
||||
|
||||
#[cfg(test)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue