clippy_utils::attrs

Function span_contains_cfg

source
pub fn span_contains_cfg(cx: &LateContext<'_>, s: Span) -> bool
Expand description

Checks if the given span contains a #[cfg(..)] attribute