fn add_only_cfg_attributes(attrs: &mut Vec<Attribute>, new_attrs: &[Attribute])
This function goes through the attributes list (new_attrs) and extract the cfg tokens from it and put them into attrs.
new_attrs
cfg
attrs