Function syntax::attr::contains_feature_attr
[−]
[src]
pub fn contains_feature_attr(attrs: &[Attribute], feature_name: &str) -> bool
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Check if attrs
contains an attribute like #![feature(feature_name)]
.
This will not perform any "sanity checks" on the form of the attributes.