1
Fork 0

Suppress some cfg from being shown in the stdlib docs

This commit is contained in:
Wim Looman 2020-11-04 22:58:37 +01:00 committed by Guillaume Gomez
parent 18fdd816b7
commit 0031ce3a91
5 changed files with 44 additions and 3 deletions

View file

@ -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)]