clippy_utils

Function inherits_cfg

source
pub fn inherits_cfg(tcx: TyCtxt<'_>, def_id: LocalDefId) -> bool
Expand description

Checks if the item of any of its parents has #[cfg(...)] attribute applied.