Function syntax::attr::contains_feature_attr [−][src]
pub fn contains_feature_attr(attrs: &[Attribute], feature_name: &str) -> bool
Check if attrs
contains an attribute like #![feature(feature_name)]
.
This will not perform any "sanity checks" on the form of the attributes.