fn add_cfg_state_attributes(attrs: &mut Vec<Attribute>, new_attrs: &[Attribute])
This function goes through the attributes list (new_attrs) and extracts the attributes that affect the cfg state propagated to detached items.
new_attrs