Expand description
Propagates #[doc(cfg(โฆ))] (RFC 3631) to child items.
Re-exportsยง
use rustc_attr_ir::Attribute;๐use rustc_attr_ir::AttributeKind;๐use rustc_attr_ir::DocAttribute;๐use rustc_attr_ir::find_attr;๐use rustc_data_structures::fx::FxHashMap;๐use rustc_span::ExpnKind;๐use rustc_span::MacroKind;๐use crate::clean::inline::load_attrs;๐use crate::clean::inline::merge_attrs;๐use crate::clean::CfgInfo;๐use crate::clean::Crate;๐use crate::clean::Item;๐use crate::clean::ItemId;๐use crate::clean::ItemKind;๐use crate::core::DocContext;๐use crate::fold::DocFolder;๐
Structsยง
- CfgPropagator ๐
Functionsยง
- add_
cfg_ ๐state_ attributes - This function goes through the attributes list (
new_attrs) and extracts the attributes that affect the cfg state propagated to detached items. - add_
only_ ๐cfg_ attributes - This function goes through the attributes list (
new_attrs) and extract thecfgtokens from it and put them intoattrs. - propagate_
doc_ ๐cfg