Skip to main content

mk_attr

Function mk_attr 

Source
fn mk_attr(g: &AttrIdGenerator, cfg_entry: CfgEntry) -> Attribute
Expand description

Construct a #[<cfg_trace>] attribute from a CfgEntry. This allows us to keep track of items that were behind a cfg_select!, which is relevant for some diagnostics.